Death and preparing for it Sunan Ibn Majah 4261

Arabic hadith text
حَدَّثَنَا عَبْدُ اللَّهِ بْنُ الْحَكَمِ بْنِ أَبِي زِيَادٍ، حَدَّثَنَا سَيَّارٌ، حَدَّثَنَا جَعْفَرٌ، عَنْ ثَابِتٍ، عَنْ أَنَسٍ، ‏:‏ أَنَّ النَّبِيَّ ـ صلى الله عليه وسلم ـ دَخَلَ عَلَى شَابٍّ وَهُوَ فِي الْمَوْتِ فَقَالَ ‏:‏ ‏"‏ كَيْفَ تَجِدُكَ ‏"‏ ‏.‏ قَالَ ‏:‏ أَرْجُو اللَّهَ يَا رَسُولَ اللَّهِ وَأَخَافُ ذُنُوبِي ‏.‏ فَقَالَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ ‏:‏ ‏"‏ لاَ يَجْتَمِعَانِ فِي قَلْبِ عَبْدٍ فِي مِثْلِ هَذَا الْمَوْطِنِ إِلاَّ أَعْطَاهُ اللَّهُ مَا يَرْجُو وَآمَنَهُ مِمَّا يَخَافُ ‏"
Translation
It wasnarrated from Anas that the Prophet (ﷺ) entered upon a youngmanwho was dying and said

“How do you feel?” He said: “I havehopein Allah, O Messenger of Allah, but I fear my sins.” TheMessenger ofAllah (ﷺ) said: “These two things (hope and fear) donot coexist inthe heart of a person in a situation like this, butAllah will givehim that which he hopes for and keep him safe fromthat which hefears.”