Al-Adab Al-Mufrad, Book 20, Hadith 3 (In-Book)

Abu Hurayra said, "I heard the Prophet, may Allah bless him and grant him peace, the truthful confirmed one, Abu'l-Qasim, may Allah bless him and grant him peace, say, 'Mercy is only removed from the one who is destined for wretchedness."

حَدَّثَنَا آدَمُ، قَالَ‏:‏ حَدَّثَنَا شُعْبَةُ، عَنْ مَنْصُورٍ، سَمِعْتُ أَبَا عُثْمَانَ مَوْلَى الْمُغِيرَةِ بْنِ شُعْبَةَ يَقُولُ‏:‏ سَمِعْتُ أَبَا هُرَيْرَةَ يَقُولُ‏:‏ سَمِعْتُ النَّبِيَّ صلى الله عليه وسلم الصَّادِقَ الْمَصْدُوقَ أَبَا الْقَاسِمِ صلى الله عليه وسلم يَقُولُ‏:‏ لاَ تُنْزَعُ الرَّحْمَةُ إِلا مِنْ شَقِيٍّ‏.‏

sunnah.com