(21) باب مَنْ خَافَ أَنْ لاَ يَقُومَ مِنْ آخِرِ اللَّيْلِ فَلْيُوتِرْ أَوَّلَهُ
Jabir reported Allah's Messenger (ﷺ) as saying:
He who amongst you is afraid that he may not be able to get up at the end of the night should observe Witr (in the first part) and then sleep, and he who is confident of getting up and praying at night (i. e. Tahajjud prayer) should observe it at the end of it, for the recitation at the end of the night is witnessed*, and that is better.*: meaning, "by angels" (Sharh an-Nawawi)
Reference: Sahih Muslim 755 b
In-book reference: Book 6, Hadith 196
USC-MSA web (English) reference(deprecated numbering scheme): Book 4, Hadith 1651