"In the past, even while Saul was king, you were the one who led Israel on their military campaigns. And the LORD your God said to you, 'You will shepherd my people Israel, and you will become their ruler."
NIV
In times past, even when Saul was king, it was you who led out and brought in Israel; and the Lord your God said to you, You shall be shepherd of My people Israel, and you shall be prince and leader over [them].
AMP
And moreover in time past, even when Saul was king, thou wast he that leddest out and broughtest in Israel: and the LORD thy God said unto thee, Thou shalt feed my people Israel, and thou shalt be ruler over my people Israel.
KJV
They would spend the night stationed around the house of God, because they had to guard it; and they had charge of the key for opening it each morning.
NIV
They lodged round about God's house, for the duty [of watching] was theirs, as well as the opening of the house every morning.
AMP
And they lodged round about the house of God, because the charge was upon them, and the opening thereof every morning pertained to them.
KJV