Sahih al-Bukhari, Volume 1, Book 12, Hadith 764 (USC-MSA) ⓘ
Narrated Rifa`a bin Rafi` Az-Zuraqi: One day we were praying behind the Prophet. When he raised his head from bowing, he said, "Sami`a l-lahu liman hamidah." A man behind him said, "Rabbana wa laka l-hamdu, hamdan kathiran taiyiban mubarakan fihi" (O our Lord! All the praises are for You, many good and blessed praises). When the Prophet completed the prayer, he asked, "Who has said these words?" The man replied, "I." The Prophet said, "I saw over thirty angels competing to write it first." Prophet rose (from bowing) and stood straight till all the vertebrae of his spinal column came to a natural position.
حَدَّثَنَا عَبْدُ اللَّهِ بْنُ مَسْلَمَةَ، عَنْ مَالِكٍ، عَنْ نُعَيْمِ بْنِ عَبْدِ اللَّهِ الْمُجْمِرِ، عَنْ عَلِيِّ بْنِ يَحْيَى بْنِ خَلاَّدٍ الزُّرَقِيِّ، عَنْ أَبِيهِ، عَنْ رِفَاعَةَ بْنِ رَافِعٍ الزُّرَقِيِّ، قَالَ كُنَّا يَوْمًا نُصَلِّي وَرَاءَ النَّبِيِّ صلى الله عليه وسلم فَلَمَّا رَفَعَ رَأْسَهُ مِنَ الرَّكْعَةِ قَالَ " سَمِعَ اللَّهُ لِمَنْ حَمِدَهُ ". قَالَ رَجُلٌ وَرَاءَهُ رَبَّنَا وَلَكَ الْحَمْدُ، حَمْدًا كَثِيرًا طَيِّبًا مُبَارَكًا فِيهِ، فَلَمَّا انْصَرَفَ قَالَ " مَنِ الْمُتَكَلِّمُ ". قَالَ أَنَا. قَالَ " رَأَيْتُ بِضْعَةً وَثَلاَثِينَ مَلَكًا يَبْتَدِرُونَهَا، أَيُّهُمْ يَكْتُبُهَا أَوَّلُ ".
also referenced under: Book 10, Hadith 194 (In-Book) & Hadith 799 (DarusSalam)