Passage
Then shalt thou have sacrifices of righteousness, burnt-offering, and whole burnt-offering; then shall they offer up bullocks upon thine altar.
Then shalt thou have sacrifices of righteousness, burnt-offering, and whole burnt-offering; then shall they offer up bullocks upon thine altar.
Psalms 51:17 The sacrifices of God are a broken spirit: a broken and a contrite heart, O God, thou wilt not despise.
Psalms 51:18 Do good in thy good pleasure unto Zion; build the walls of Jerusalem.
Psalms 51:19 Then shalt thou have sacrifices of righteousness, burnt-offering, and whole burnt-offering; then shall they offer up bullocks upon thine altar.
The verse centers on "shalt", "thou", "sacrifices", "righteousness", "burnt-offering", "whole", and "shall". It is saying that the verse draws attention to "shalt" and "thou", so its meaning should be read from those terms before moving to application.
The prior verse says "Do good in thy good pleasure unto...", giving immediate footing for "shalt" and "thou". In Psalms context, the local focus is worship, trust, the LORD's kingship, and covenant mercy.
A plain takeaway is to answer the verse's own emphasis on "shalt" and "thou" with trust shaped by these words, not by a vague optimism outside the passage.