In the Name of Allah, the Most Gracious, the Most Merciful.
As-Salāmu ʿAlaykum Wa-Raḥmatullāhi Wa-Barakātuh
It is mustaḥabb to perform Witr during the latter part of the night, after offering Tahajjud. However, if a person is not confident that he will wake up, he should perform Witr before going to sleep. [1]
And Allah Taʿāla Knows Best.
Baba Abu Bakr
Student –Darul Iftaa
Accra, Ghana
Checked and Approved by
Mufti Muhammad Zakariyya Desai
https://iftaa.co.za/9179/best-time-for-witr-salah/