Rebuild Zion (Ps 51:18-51:19)

“Do good to Zion!

In your good pleasure!

Rebuild the walls of Jerusalem!

Then you will delight in right sacrifices.

You will delight in burnt offerings.

You will delight in whole burnt offerings.

Then bulls will be offered on your altar.”

This psalm ends with this addition about rebuilding Zion that had nothing to do with David and his sin with Bathsheba.  David had not even built the Temple so that to rebuild it would have been a post-exilic effort such as in Ezra and Nehemiah. This addition is almost in contradiction to the preceding verses that were pointing out the non-importance of sacrifices.  Here it is the opposite.  God would delight in right sacrifices, various burnt offers, and all those bulls on his altar.  This seems to go against the whole theme of this psalm, but brings the repentance back to ritual sacrifices.