It was narrated that Rifa’ah bin Rafi said:
“We were praying behind the Messenger of Allah (ﷺ) one day and when he raised his head from bowing he said:
‘Sami Allahu liman hamidah (Allah hears the one who praises Him).’
A man behind him said: ‘Rabbana wa lakal-hamd, hamdan kathiran tayyiban mubarakan fih.
(O our Lord, and to You be praise, much blessed and pure praise.)’
When the Messenger of Allah (ﷺ) had finished, he said:
“Who is the one who spoke just now?”
The man said: ‘I did, O Messenger of Allah.’
The Messenger of Allah (ﷺ) said: ‘I saw thirty-some angels rushing to see which of them would write it down first.'”
It was narrated from Abu Hurairah that:
The Messenger of Allah (ﷺ) said:
“When the Imam says: ‘Sami Allahu liman hamidah (Allah hears the one who praises Him),’
then say: ‘Rabbana wa lakal-hamd,’ (Our Lord, and to You be the praise).’
Whoever says that and it coincides with the angels saying it, his previous sins will be forgiven.”
رَبِّ هَبْ لِي حُكْمًا وَأَلْحِقْنِي بِالصَّالِحِينَ
83. [And he said], “My Lord, grant me authority and join me with the righteous.
وَاجْعَلْ لِي لِسَانَ صِدْقٍ فِي الْآخِرِينَ
84. And grant me a reputation of honor among later generations.
وَاجْعَلْنِي مِنْ وَرَثَةِ جَنَّةِ النَّعِيمِ
85. And place me among the inheritors of the Garden of Pleasure.
وَلَا تُخْزِنِي يَوْمَ يُبْعَثُونَ
87. And do not disgrace me on the Day they are [all] resurrected –
verses 83-85, 87
There has certainly come to you a Messenger from among yourselves. Grievous to him is what you suffer; [he is] concerned over you and to the believers is kind and merciful.
But if they turn away, [O Muhammad], say, “Sufficient for me is Allah ; there is no deity except Him. On Him I have relied, and He is the Lord of the Great Throne.”
رَبِّ أَدْخِلْنِي مُدْخَلَ صِدْقٍ وَأَخْرِجْنِي مُخْرَجَ صِدْقٍ وَاجْعَلْ لِي مِنْ لَدُنْكَ سُلْطَانًا نَصِيرًا
My Lord! Cause me to enter a sound entrance and to exit a sound exit and grant me from your self a supporting authority.