We honor God with the purity of our heart. We obtain a pure heart by hiding in our God.
In this chapter of Psalm, David is petitioning God to hear him, answer him, protect him, save him, etc. By consistently and persistently seeking God, He purifies our lives, our motives and our hearts.
I will state it again, apart from God we cannot purify ourselves.
What’s in your heart?