Abu Huraira reported: My dear friend the Prophet, peace and blessings be upon him, advised me to do three deeds and I will never abandon them until I die: to fast three days of every month, to perform forenoon prayer, and to sleep after performing the Witr prayer.
Source: Ṣaḥīḥ al-Bukhārī 1178, Ṣaḥīḥ Muslim 721
Grade: Muttafaqun Alayhi (authenticity agreed upon) according to Al-Bukhari and Muslim
Imam al-Nawawi commented, “To perform Witr prayer before sleeping is only recommended for one who is not confident he will wake up at the end of the night. If he is confident he will wake up, it is better to pray it at the end of the night.”
Source: Riyāḍ al-Ṣāliḥīn 1/325
عَنْ أَبِي هُرَيْرَةَ قَالَ أَوْصَانِي خَلِيلِي يعني النَّبِي صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ بِثَلَاثٍ لَا أَدَعُهُنَّ حَتَّى أَمُوتَ صَوْمِ ثَلَاثَةِ أَيَّامٍ مِنْ كُلِّ شَهْرٍ وَصَلَاةِ الضُّحَى وَنَوْمٍ عَلَى وِتْرٍ
1178 صحيح البخاري كتاب التهجد باب صلاة الضحى في الحضر
721 صحيح مسلم كتاب صلاة المسافرين وقصرها باب استحباب صلاة الضحى والحث على المحافظة عليها
قَالَ النَّوَوِيّ وَالإيتَارُ قَبْلَ النَّوْمِ إنَّمَا يُسْتَحَبُّ لِمَنْ لَا يَثِقُ بِالاسْتِيقَاظِ آخِرَ اللَّيْلِ فَإنْ وَثِقَ فَآخِرُ اللَّيْلِ أفْضَلُ
1/325 رياض الصالحين كتاب الفضائل باب فضل صلاة الضحى