(17) باب مَا يَقُولُ عِنْدَ النَّوْمِ وَأَخْذِ الْمَضْجَعِ
This hadith has been transmitted on the authority of al-Bara' b. 'Azib that Allah's Messenger (ﷺ) said to a person:
O, so and so, as you go to your bed; the rest of the hadith is the same but with this variation of wording that he said:" Thine Apostle whom Thou sent." If you die that night you would die on Fitra and if you get up in the morning you would get up with a bliss.
Reference: Sahih Muslim 2710 d
In-book reference: Book 48, Hadith 78
USC-MSA web (English) reference(deprecated numbering scheme): Book 35, Hadith 6547