A man asked the Prophet (ﷺ) while he was delivering a sermon on the pulpit: O Messenger of Allah, teach me how to perform the night prayer. The Prophet (ﷺ) said: Pray and make Taslīm after every two Rak‘ahs. When you fear that dawn is near, then pray one Rak‘ah, which will make what you have prayed Witr. And he (ﷺ) used to advise making Witr the last prayer of the night.