In 2 Samuel 12 God sends the prophet Nathan to King David to rebuke him for the sins with Bathsheba and the killing of Uriah, Bathsheba’s husband.

King David repented of his sins and wrote about it in Psalm 51.

16 For you will not delight in sacrifice, or I would give it;
    you will not be pleased with a burnt offering.
17 The sacrifices of God are a broken spirit;
    a broken and contrite heart, O God, you will not despise.

Psalm 51:16-17, ESV

This is something that is frequently identified in both the Old Testaments and New Testaments. Isaiah Chapter 1 and Jeremiah Chapter 6 especially, but also the minor prophets spoke of this.

But we seem to have not learned the lessons from the Bible.

I fear that we still try to buy God’s blessing by the offerings we give or the things we do for the church in hopes that it will gain God’s grace over the sins we commit.

This is what God calls for.

33 And to love him with all the heart and with all the understanding and with all the strength, and to love one’s neighbor as oneself, is much more than all whole burnt offerings and sacrifices.”

Mark 12:33, ESV

It is only from this love of God and neighbor that your offerings and sacrifices have value.