Honesty in prayer is essential. God values it. He honors it. But we have a hard time doing it.
By default, we put up a deceptive front. We justify ourselves before we get honest, genuinely honest. It's just the way we are.
This prayerful psalm of King David came after he was confronted by Nathan the prophet. The story is found in 2 Samuel 12:1-15.