Bulugh al-Maram 385
وَعَنْ جَابِرٍ قَالَ: قَالَ رَسُولُ اللَّهِ - صلى الله عليه وسلم: «مَنْ خَافَ أَنْ لَا يَقُومَ مِنْ آخِرِ اللَّيْلِ فَلْيُوتِرْ أَوَّلَهُ, وَمَنْ طَمِعَ أَنْ يَقُومَ آخِرَهُ فَلْيُوتِرْ آخِرَ اللَّيْلِ, فَإِنَّ صَلَاةَ آخِرِ اللَّيْلِ مَشْهُودَةٌ, وَذَلِكَ أَفْضَلُ». رَوَاهُ مُسْلِمٌ.
Jabir said: The Messenger of Allah ﷺ said: "Whoever fears that he will not get up at the end of the night, let him pray witr at its beginning; and whoever hopes to get up at its end, let him pray witr at the end of the night, for the prayer at the end of the night is witnessed, and that is better." Reported by Muslim.