صحيح مسلم Sahih Muslim كتاب الإيمان The Book of Faith
باب دُعَاءِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ لأُمَّتِهِ وَبُكَائِهِ شَفَقَةً عَلَيْهِمْ:

Chapter: The supplication of the Prophet (saws) for his ummah and his weeping out of compassion for them

1 hadith
Hadith 202
حَدَّثَنِي حَدَّثَنِي يُونُسُ بْنُ عَبْدِ الأَعْلَى الصَّدَفِيُّ ، أَخْبَرَنَا ابْنُ وَهْبٍ ، قَالَ : أَخْبَرَنِي عَمْرُو بْنُ الْحَارِثِ ، أَنَّ بَكْرَ بْنَ سَوَادَةَ حَدَّثَهُ ، عَنْ عَبْدِ الرَّحْمَنِ بْنِ جُبَيْرٍ ، عَنْ عَبْدِ اللَّهِ بْنِ عَمْرِو بْنِ الْعَاصِ ، " أَنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ : تَلَا قَوْلَ اللَّهِ عَزَّ وَجَلَّ فِي إِبْرَاهِيمَ : رَبِّ إِنَّهُنَّ أَضْلَلْنَ كَثِيرًا مِنَ النَّاسِ فَمَنْ تَبِعَنِي فَإِنَّهُ مِنِّي سورة إبراهيم آية 36 الآيَةَ ، وَقَالَ عِيسَى عَلَيْهِ السَّلَام : إِنْ تُعَذِّبْهُمْ فَإِنَّهُمْ عِبَادُكَ وَإِنْ تَغْفِرْ لَهُمْ فَإِنَّكَ أَنْتَ الْعَزِيزُ الْحَكِيمُ سورة المائدة آية 118 ، فَرَفَعَ يَدَيْهِ ، وَقَالَ : اللَّهُمَّ ، أُمَّتِي ، أُمَّتِي ، وَبَكَى ، فَقَالَ اللَّهُ عَزَّ وَجَلَّ : يَا جِبْرِيلُ ، اذْهَبْ إِلَى مُحَمَّدٍ وَرَبُّكَ أَعْلَمُ ، فَسَلْهُ مَا يُبْكِيكَ ؟ فَأَتَاهُ جِبْرِيلُ عَلَيْهِ السَّلَامُ ، فَسَأَلَهُ ، فَأَخْبَرَهُ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ بِمَا قَالَ ، وَهُوَ أَعْلَمُ ، فَقَالَ اللَّهُ : يَا جِبْرِيلُ ، اذْهَبْ إِلَى مُحَمَّدٍ ، فَقُلْ : إِنَّا سَنُرْضِيكَ فِي أُمَّتِكَ وَلَا نَسُوؤُكَ " .
'Abdullah bin 'Amr (RA) bin al-'As reported: Verily the Apostle of Allah (ﷺ) recited the words of Allah, the Great and Glorious, that Ibrahim uttered. My Lord! Lo! They have led many of mankind astray:" But whoso followeth me, he verily is of me" (al-Qur'an, xiv. 35) and Jesus (peace be upon him) said:" If thou punisheth them, lo! They are Thy slaves, and if Thou forgiveth them-verily Thou art the Mighty, the Wise" (al-Qur'an, v 117). Then he raised his hands and said: O Lord, my Ummah, my Ummah, and wept; so Allah the High and the Exalted said: O Gabriel (ؑ), go to Muhammad (though your Lord knows it fully well) and ask him: What makes thee weep? So Gabriel (ؑ) (peace be upon him) came to him and asked him, and the Messenger of Allah (ﷺ) informed him what he had said (though Allah knew it fully well). Upon this Allah said: O Gabriel (ؑ), go to Muhammad any say: Verily We will please thee with regard to your Ummah and would not displease thee.
Hadith Reference Sahih Muslim / The Book of Faith / Hadith: 202
Hadith Grading محدثین: أحاديث صحيح مسلم كلها صحيحة
Hadith Takhrij «أحاديث صحيح مسلم كلها صحيحة ، انفرد به مسلم - انظر ((التحفة)) برقم (8873)»