Guide
How do you show gratitude to Allah?
You show gratitude to Allah by recognising that a blessing came from Him, saying so, and using it well. The Qur'an says: "Remember Me and I will remember you. Be grateful to Me and do not deny Me" (al-Baqarah 2:152). The Prophet, peace be upon him, also showed his thanks by standing in prayer (Sahih al-Bukhari 4836).
If you searched for a gratitude prayer or a thankful prayer in Islam, you may be looking for something new to add to your day. Most of what the Qur'an and Sunnah teach about thanks (shukr) is already inside the salah you pray, which you may know as namaz or salat. This page shows you where.
What the Qur'an says about gratitude
The best known verse is short:
"If you are grateful, I will surely increase you."Qur'an, Ibrahim 14:7 (meaning in English)

That is Allah's own statement, and we quote it and leave it there. The verse does not say what the increase will be or when. It is not a method for getting more things, and we will not turn it into one.
Other verses (ayat) on gratitude fill in the picture. "Whoever is grateful is grateful only for the good of their own soul" (Luqman 31:12). "As for the favour of your Lord, speak of it" (ad-Duha 93:11).
Then there is the verse you recite most. Every rak'ah opens with "al-hamdu lillahi rabbil-'alamin", all praise belongs to Allah, Lord of all the worlds (al-Fatiha 1:2). Across the five daily prayers you say it at least seventeen times. You have been giving thanks every day, whether or not you noticed. We go through the surah here: What does Surah al-Fatiha mean, line by line?
The Prophet's thanks was a prayer
Al-Mughira reported that the Prophet, peace be upon him, used to stand in the night prayer until his feet swelled. Someone pointed out that Allah had already forgiven him. He answered: "Should I not be a thankful servant?" (Sahih al-Bukhari 4836).
His response to being given much was to stand and pray. In that report, gratitude is the reason for the prayer, and not only a feeling that comes after it.
He also taught Mu'adh ibn Jabal a dua and told him not to leave it after any prayer:
"Allahumma a'inni 'ala dhikrika wa shukrika wa husni 'ibadatik."
"O Allah, help me to remember You, to thank You, and to worship You well." (Sunan Abi Dawud 1522, graded sahih by al-Albani.)
Notice what the dua admits. Even thanking Allah is something you ask His help with. Scholars differ on whether "after every prayer" means at the end of the prayer before the salam, or after it. Ask your teacher which they follow.
And he tied thanks to people: "Whoever does not thank people has not thanked Allah" (Sunan Abi Dawud 4811, graded sahih by al-Albani).
What the scholars wrote
Imam al-Ghazali gives Book 32 of the Ihya to patience and thankfulness together, and treats them as two halves of one condition. As it is summarised in the works we draw on, he describes gratitude as three things joined: knowing the blessing is from Allah, being glad of the Giver and not only the gift, and using the gift in a way that pleases Him. The teachers who came after often put it as thanks of the heart, the tongue and the body.
On that reading, gratitude is less a mood than a way of seeing accurately. You do not have to work yourself into a feeling. You have to notice what is true.
One thing to try before your next prayer
This is our own exercise, drawn from those works. It is not a ruling and it adds nothing to the prayer itself.
One named blessing.
- Before the prayer, name one real blessing from today. Make it specific. Not "my health" but "I climbed the stairs without pain". Not "my family" but "someone made tea for me".
- When you reach "al-hamdu lillahi rabbil-'alamin" in al-Fatiha, give your attention to the words you are already reciting. Do not run a list in your head. Add nothing.
- After the prayer, answer the blessing with one act. Thank the person it came through, for the exact thing they did. Or take care of what you were given.
- Leave it there. Do not measure how grateful you felt.

Try it with one prayer a day for a week. We cannot promise how it will feel. What it changes is small: the praise in al-Fatiha has something particular behind it. For how this fits into the rest of your life, see How does salah change your life?
Questions people ask next
Is there a dua for gratitude in Islam?
Yes. The dua taught to Mu'adh above is one. The Qur'an also records the dua of Sulayman, peace be upon him: "My Lord, enable me to be grateful for Your favour which You have bestowed upon me and upon my parents" (an-Naml 27:19). And the plain word "alhamdulillah" is itself thanks.
How do you pray a prayer of gratitude?
The scholars discuss a prostration of thanks made when good news arrives. How and when it is done, and what it requires, differs between the schools, so it is a question for a qualified teacher and not for us. What we can say is that the five prayers already carry praise in every rak'ah.
What does the Qur'an say about gratitude?
It links gratitude with remembering Allah (2:152), says the benefit returns to the grateful person (31:12), tells us to speak of His favour (93:11), and gives the statement in 14:7 quoted above. The Qur'an often pairs gratitude with patience, which we cover here: What is sabr in Islam?
How can I be grateful when I have lost something?
Nobody is asking you to call a loss a gift. The Prophet, peace be upon him, said that the believer's affair is all good: thankful in ease, patient in hardship (Sahih Muslim 2999). The hardship is still called hardship. If your loss is recent, this is not the week for gratitude lists. Grieve, pray, and let people help you.
Read next
- How does salah change your life, and why has it not changed mine?
- What is tawakkul, and how do you practise it?
- What is sabr in Islam?
- What does Surah al-Fatiha mean, line by line?
We are not scholars. We are practising Muslims curating what the scholars of this ummah already wrote, held to the standard of the Qur'an and Sunnah. Verify everything. Ask your local people of knowledge.
This article draws on the gratitude sections of Prayer Into Action and 12 Connections of Salah, two of the eight books in Feel Your Prayer Again.