Witr prayer and how to pray it
Witr is prayed after Isha and before dawn. A single rak'ah of Witr can close the night prayer.
How to pray three rak'ahs of Witr
One way is to pray two rak'ahs and give the salam, then stand and pray a single rak'ah and give the salam. One rak'ah on its own also suffices according to Ibn Baz. For a longer prayer, pray in pairs and finish with one rak'ah.
Can I pray Witr before sleeping?
If you may sleep through the night, you can pray Witr after Isha before going to bed. If you usually wake in the latter part of the night, you can pray it when you wake, before Fajr.
Checking when the window ends
Use the following day's Fajr time in your city. For example, look up Saturday's Fajr if you are praying Witr after Friday's Isha.