Psalm 48:9-10
We have thought of thy lovingkindness, O God, in the midst of thy temple. 10 According to thy name, O God, so is thy praise unto the ends of the earth: thy right hand is full of righteousness.
Responding both to God and people in thanksgiving is a product of quality thinking. Every thoughtful person will be a good thanks giver.