Riyad as-SalihinChapter 8Hadith 459
Full Sharh — Riyad as-Salihin 459
وعن جابر رضي الله عنه قال قال رسول الله صلى الله عليه وسلم : "من خاف أن لا يقوم الليل فليوتر أوله، ومن طمع أن يقوم آخره، فليوتر آخر الليل، فإن صلاة آخر الليل مشهودة، وذلك أفضل". ((رواه مسلم)).
English Translation
Jabir (May Allah be pleased with him)reported:: The Messenger of Allah (ﷺ) said, "He who apprehends that he may not get up in the later part of the night, should observe the Witr prayer in the first part of it; and he who is certain to get up in the last part of it, he should observe Witr at the end of the night, because Salat at the end of the night is attended (by the angels), and that is better.".
Source
Riyad as-Salihin(رياض الصالحين)
The Book of Virtues
Hadith Number
459