Proverbs 21:27 The sacrifice of an evil person is detestable, especially when it offers with wrong motives.
I immediately thought of the Psalms 50:14 Make thankfulness your sacrifice to God. We need to be constantly thankful. Always aware that all that we have does come straight from God.We need to be thankful in the good times and in the bad times. We can't wait until we need something...those are not thank you's at all those are bribes to get God to listen to us. Our thankfulness needs to have no motive behind it at all...it needs to be pure..as pure as sacrifices had to be in the Old Testament. That is when God hears us... God always knows our motives, always. We need to be self-aware enough to see if we have a motive when we send up thanksgiving to God. The more we are in line with God's will, the more thankful we are to God for all we have, the better we get at forgiving the more God is able to do for us... not because we want, want, want... but because we love.