Hadith on Gabriel: The angel gives advice to the Prophet to be independent of the world

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 die. Work as you wish, for you will be repaid accordingly. Love whomever you wish, for you will be separated. Know that the nobility of the believer is in prayer at night and his honor is in his independence of the people.”

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

Grade: Hasan (fair) according to Al-Albani

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

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

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