This is a question we all ask at some point in our life. David actually answers this question as the Holy Spirit gives him divine revelation and insight. This Psalm actually follows closely the same message of Jesus in His Sermon On the Message message.
Psalm 15:1-5 “Who may worship in your sanctuary, Lord? Who may enter your presence on your holy hill? Those who lead blameless lives and do what is right, speaking the truth from sincere hearts. Those who refuse to gossip or harm their neighbors or speak evil of their friends. Those who despise flagrant sinners, and honor the faithful followers of the Lord, and keep their promises even when it hurts. Those who lend money without charging interest, and who cannot be bribed to lie about the innocent. Such people will stand firm forever.”
Let us ask this question daily and seek to pursue its invitation. Our response to this question will serve as our capacity for eternal rewards and proximity to God‘s throne in service. All of our words and deeds done in this life will correspond to our life in the ages to come when we are serving in Christ’s Kingdom.