Mishkat al-Masabih 1612
وَعَن أنس قَالَ: دخل النَّبِي عَلَى شَابٍّ وَهُوَ فِي الْمَوْتِ فَقَالَ: «كَيْفَ تجدك؟» قَالَ: أرجوالله يَا رَسُولَ اللَّهِ وَإِنِّي أَخَافُ ذُنُوبِي فَقَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «لَا يَجْتَمِعَانِ فِي قَلْبِ عَبْدٍ فِي مِثْلِ هَذَا الْمَوْطِنِ إِلَّا أَعْطَاهُ اللَّهُ مَا يَرْجُو وَآمَنَهُ مِمَّا يَخَافُ» . رَوَاهُ التِّرْمِذِيُّ وَابْنُ مَاجَهْ وَقَالَ التِّرْمِذِيُّ هَذَا حَدِيث غَرِيب
From Anas, who said: The Prophet went in to a young man who was dying and said: "How do you find yourself?" He said: "I have hope in Allah, O Messenger of Allah, and I fear my sins." The Messenger of Allah ﷺ said: "These two do not come together in the heart of a servant in a situation like this except that Allah gives him what he hopes for and makes him safe from what he fears." Reported by at-Tirmidhi and Ibn Majah, and at-Tirmidhi said: "This is a gharib hadith."