Here David is asking God to look into his heart, to see if he has any wrong intentions and then to lead him on the right path. We must do the same and ask God to help us walk the correct path of a life in faith with Him.
This is really true and something that everyone should be aware of. Thanks for my contribution
Thank you so much for the very nice comment.