Psalms 51:12-19

12 (50-14) Restore unto me the joy of thy salvation, and strengthen me with a perfect spirit.
13 (50-15) I will teach the unjust thy ways: and the wicked shall be converted to thee.
14 (50-16) Deliver me from blood, O God, thou God of my salvation: and my tongue shall extol thy justice.
15 (50-17) O Lord, thou wilt open my lips: and my mouth shall declare thy praise.
16 (50-18) For if thou hadst desired sacrifice, I would indeed have given it: with burnt offerings thou wilt not be delighted.
17 (50-19) A sacrifice to God is an afflicted spirit: a contrite and humbled heart, O God, thou wilt not despise.
18 (50-20) Deal favourably, O Lord, in thy good will with Sion; that the walls of Jerusalem may be built up.
19 (50-21) Then shalt thou accept the sacrifice of justice, oblations and whole burnt offerings: then shall they lay calves upon thy altar.

Psalms 51:12-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.
The Douay-Rheims Bible is in the public domain.