Read
Psalm 51 ESV
Who - David is talking to the LORD. Then he made it into a song for Israel to sing to the LORD.
When - After Nathan confronts David about his adultery, abuse of power, murder and cover up (2 Sam 12:1-14)
Where - David's palace, perhaps in his throne room
What and Why - David has been confronted by Nathan for his sin with Bathsheba and against Uriah. David expresses in this psalm his guiltiness, remorse and repentance. He acknowledges his wrongs and asks God to forgive him. Yet David asks for more than forgiveness, David asks for restoration, restoration in his relationship with God and his role as instructor in the LORD’S ways.