Sahih Muslim 1865
The Book of Prayer - Travellers
حَدَّثَنَا مُحَمَّدُ بْنُ الْمُثَنَّى، وَابْنُ، بَشَّارٍ قَالاَ حَدَّثَنَا مُحَمَّدُ بْنُ جَعْفَرٍ، حَدَّثَنَا شُعْبَةُ، قَالَ سَمِعْتُ قَتَادَةَ، يُحَدِّثُ عَنْ أَنَسٍ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم لأُبَىِّ بْنِ كَعْبٍ " إِنَّ اللَّهَ أَمَرَنِي أَنْ أَقْرَأَ عَلَيْكَ { لَمْ يَكُنِ الَّذِينَ كَفَرُوا} " . قَالَ وَسَمَّانِي لَكَ قَالَ " نَعَمْ " . قَالَ فَبَكَى .
Anas reported Allah's Messenger (ﷺ) as saying to Ubayy b. Ka`b:Allah has commanded me to recite to you:" Those who disbelieve were not..." (al-Qur'an, xcviii. 1). He said: Did He mention me by name? He (the Prophet said): Yes. Upon this he shed tears (of gratitude)
Text from the public-domain hadith-api dataset. Numbering follows that dataset and can differ by a few from some printed editions — check the wording, not only the number.