Hadith on Jibreel: Gabriel gives advice to the Prophet

Sahl ibn Sa’d reported: The Angel Gabriel came to the Prophet, peace and blessings be upon him, and he said, “O Muhammad, live as you wish, for you will surely die. Work as you wish, for you will surely be repaid. Love whomever you wish, for you will surely be separated. Know that the nobility of the believer is in prayer at night and his honor is in his independence of people.”

Source: al-Muʻjam al-Awsaṭ 4410

Grade: Hasan (fair) according to Al-Albani

عَنْ سَهْلِ بْنِ سَعْدٍ قَالَ جَاءَ جِبْرِيلُ إِلَى النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَقَالَ يَا مُحَمَّدُ عِشْ مَا شِئْتَ فَإِنَّكَ مَيِّتٌ وَاعْمَلْ مَا شِئْتَ فَإِنَّكَ مَجْزِيٌّ بِهِ وَأَحْبِبْ مَنْ شِئْتَ فَإِنَّكَ مُفَارِقُهُ وَاعْلَمْ أَنَّ شَرَفَ الْمُؤْمِنِ قِيَامُ اللَّيْلِ وَعِزَّهُ اسْتِغْنَاؤُهُ عَنِ النَّاسِ

4410 المعجم الأوسط للطبراني باب العين من اسمه عبد الله

73 المحدث الألباني خلاصة حكم المحدث حسن في صحيح الجامع