HAKIM 7921:
from Sahl b. Saʿd —
[Machine] Gabriel ﷺ came to the Prophet ﷺ and said, "O Muhammad, live as you wish, for you shall die. Love whom you wish, for you shall part from them. And do as you wish, for you shall be rewarded accordingly." Then he said, "O Muhammad, the honor of a believer is their night prayers, and their sufficiency is in their independence from people."
الحاكم ٧٩٢١:
عن سهل بن سعد —
جَاءَ جِبْرِيلُ عَلَيْهِ السَّلَامُ إِلَى النَّبِيِّ ﷺ فَقَالَ «يَا مُحَمَّدُ عِشْ مَا شِئْتَ فَإِنَّكَ مَيِّتٌ وَأَحْبِبْ مَنْ أَحْبَبْتَ فَإِنَّكَ مَفَارِقُهُ وَاعْمَلْ مَا شِئْتَ فَإِنَّكَ مَجْزِيٌّ بِهِ» ثُمَّ قَالَ «يَا مُحَمَّدُ شَرَفُ الْمُؤْمِنِ قِيَامُ اللَّيْلِ وَعِزُّهُ اسْتِغْنَاؤُهُ عَنِ النَّاسِ»
hadithunlocked.com