Psalm 51 is a psalm of David, when Nathan the prophet went to him, after he had gone in to Bathsheba.