Jami` at-Tirmidhi, Book 3, Hadith 4 (Tirmidhi 456)

Abu Hurairah narrated:

"Allah's Messenger ordered me to perform Al-Witr before sleeping."