Leviticus 22:29

If you immolate a victim as an act of thanksgiving to the Lord, so that he may be pleased

Other versions

King James Version

And when ye will offer a sacrifice of thanksgiving unto the LORD, offer it at your own will.

English Standard Version

And when you sacrifice a sacrifice of thanksgiving to the LORD, you shall sacrifice it so that you may be accepted.

New International Version

"When you sacrifice a thank offering to the LORD, sacrifice it in such a way that it will be accepted on your behalf.