Psalms 51:13-19

13 Then I will teach the wicked your ways, and sinners will return to you.
14 Rescue me from the guilt of shedding blood, God, God of my salvation! Then my tongue will sing about your righteousness
15 Adonai, open my lips; then my mouth will praise you.
16 For you don't want sacrifices, or I would give them; you don't take pleasure in burnt offerings.
17 My sacrifice to God is a broken spirit; God, you won't spurn a broken, chastened heart.
18 In your good pleasure, make Tziyon prosper; rebuild the walls of Yerushalayim.
19 Then you will delight in righteous sacrifices, in burnt offerings and whole burnt offerings; then they will offer bulls on your altar.

Psalms 51:13-19 Meaning and Commentary

To the chief Musician, A Psalm of David, when Nathan the prophet came unto him, after he had gone in to Bathsheba. The occasion of this psalm was the sin of David with Bathsheba, signified by "going in to her"; an euphemism for "lying with her"; which sin was a very aggravated one, she being another man's wife, and the wife of a servant and soldier of his, who was at the same time exposing his life for his king and country's good; and David besides had many wives, and was also king of Israel, and should have set a better example to his subjects; and it was followed with other sins, as the murder of Uriah, and the death of several others; with scandal to religion, and with security and impenitence in him for a long time, until Nathan the prophet was sent to him of God, to awaken him to a sense of his sin; which he immediately acknowledged, and showed true repentance for it: upon which, either while Nathan was present, or after he was gone, he penned this psalm; that it might remain on record, as a testification of his repentance, and for the instruction of such as should fall into sin, how to behave, where to apply, and for their comfort. The history of all this may be seen in the eleventh and twelfth chapters of the second book of Samuel.
Complete Jewish Bible Copyright 1998 by David H. Stern. Published by Jewish New Testament Publications, Inc. All rights reserved. Used by permission.