Psalm 24:3
1 A psalm of David. The Lord owns the earth and all it contains, the world and all who live in it. 2 For he set its foundation upon the seas, and established it upon the ocean currents. 3 Who is allowed to ascend the mountain of the Lord? Who may go up to his holy dwelling place? 4 The one whose deeds are blameless and whose motives are pure, who does not lie, or make promises with no intention of keeping them. 5 Such godly people are rewarded by the Lord, and vindicated by the God who delivers them.
Matthew 5:8
5 Blessed are the meek, for they will inherit the earth. 6 Blessed are those who hunger and thirst for righteousness, for they will be satisfied. 7 Blessed are the merciful, for they will be shown mercy. 8 Blessed are the pure in heart, for they will see God. 9 Blessed are the peacemakers, for they will be called the children of God. 10 Blessed are those who are persecuted for righteousness, for the kingdom of heaven belongs to them.
Notes and References
"... The concern for those who “hunger and thirst” evokes Ps 107.5–6,9 (see also Ps 22.26); LXX Prov 14.21 (LXX; see also LXX Prov 17.5) underlies the concern for the merciful. “Pure in heart” or “clean of heart” recalls Ps 24.3–6 (see also Ps 73.1), another reference to the land; it also echoes Ps 51.10 (Heb 51.12; LXX 50.12), kardian katharan in the Greek text of the Psalm and katharoi tē kardia in Matthew ..."
Levine, Amy-Jill & Brettler, Marc Zvi The Jewish Annotated New Testament (p. 10) Oxford University Press, 2011