Psalms 51:13-19

13 Then I will teach your ways to those who commit lawless acts. And sinners will turn back to you.
14 You are the God who saves me. I have committed murder. Take away my guilt. Then my tongue will sing about how right you are no matter what you do.
15 Lord, open my lips so that I can speak. Then my mouth will praise you.
16 You don't take delight in sacrifice. If you did, I would bring it. You don't take pleasure in burnt offerings.
17 The greatest sacrifice you want is a broken spirit. God, you will gladly accept a heart that is broken because of sadness over sin.
18 May you be pleased to give Zion success. Build up the walls of Jerusalem.
19 Then holy sacrifices will be offered in the right way. Whole burnt offerings will bring delight to you. And bulls will be offered 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.
Holy Bible, New International Reader's Version® Copyright © 1995, 1996, 1998 by Biblica.   All rights reserved worldwide.