In Psalm 24, David testified to the glory of the Lord — the earth and all that is in it belonging to Him. In verses 7-10 he proclaimed:
“Lift up your heads, O you gates! And be lifted up, you everlasting doors! And the King of glory shall come in. 8 Who is this King of glory? The LORD strong and mighty, The LORD mighty in battle. 9 Lift up your heads, O you gates! Lift up, you everlasting doors! And the King of glory shall come in. 10 Who is this King of glory? The LORD of hosts, He is the King of glory” (Psalms 24:7-10).
In establishing that the earth belongs to God, and His is the “King of glory”, the question is who will be accepted by Him? Who will have a place of honor in the kingdom of the King of glory? This question was actually answered by David earlier in the Psalm, which in turn gives us a clear understanding of God’s values. “Who may ascend into the hill of the LORD? Or who may stand in His holy place? 4 He who has clean hands and a pure heart, who has not lifted up his soul to an idol, nor sworn deceitfully” (Psalms 24:3-4).
God requires loyalty and purity from those who He will allow to approach and serve Him. His own righteousness requires the same from us. We are to be holy, because He is holy! (cf. Leviticus 11:44-45).