Gratitude is based on five foundations:
“Humility of the thankful one towards the One Who is thanked, his love for Him, his acknowledgement of His blessing, his praise of Him for that and not using it for anything that He hates.
These five are the foundations of gratitude which is built on them. If one of them is missing, then one of the foundations of gratitude is missing. Whoever (of the scholars) speaks of gratitude as an independent quality must be referring to all of these five foundations.
Gratitude is shown in the heart by humility, on the tongue by praise and acknowledgement, and in one’s physical actions by obeying and submitting.”