Peter Pett's Commentary on the Bible
Psalms 51 - Introduction
Heading.
‘For the Chief Musician. A Psalm of David; when Nathan the prophet came to him, after he had gone in to Bath-sheba.'
Following the nine Psalms of the sons of Korah and a Psalm of Asaph we now have a further series of Psalms of David. The headings indicate that a number of these, at least, were written by David personally (in some cases ‘to/for David' could signify the Davidic house). It is dedicated to the Choirmaster, or chief musician. What this actually signified we do not know. Possibly the choirmaster originally had his own collection of psalms and hymns.
This first Psalm, one of the most famous of the Psalms, was written by David in repentance over his sin with Bathsheba, when he stole Uriah's wife from him and then arranged for Uriah's death (2 Samuel 11). It was one of the blackest moments in his career, and resulted in great grief for him later on when his sons in one way or another followed his example.
Nevertheless David's genuine repentance is clear from the words of the Psalm. But his experience is a reminder that sin always has its consequences for others, even when we have been forgiven.