“The sacrifice of the wicked is an abomination to the Lord: but the prayer of the upright is His delight.” Prov 15:8 When we do something wrong we often do a lot of good things to compensate for our wrongdoing, the word of God tells us that if we are praying and have gifts to offer at the altar and whilst praying we remember that we have sin in our hearts or have offended other people, the bible says we should leave our gifts at the altar and go and make peace first then offer our gifts or continue to pray. God is pleased with a prayer of an upright man than receiving sacrifices from a wicked heart.