Arabic hadith text
وَحَدَّثَنِي عَنْ مَالِكٍ، أَنَّهُ بَلَغَهُ أَنَّ عَائِشَةَ، زَوْجَ النَّبِيِّ صلى الله عليه وسلم كَانَتْ تَقُولُ مَنْ خَشِيَ أَنْ يَنَامَ حَتَّى يُصْبِحَ فَلْيُوتِرْ قَبْلَ أَنْ يَنَامَ وَمَنْ رَجَا أَنْ يَسْتَيْقِظَ آخِرَ اللَّيْلِ فَلْيُؤَخِّرْ وِتْرَهُ ‏.‏
Translation

Yahya related to me from Malik that he had heard that A'isha, thewife of the Prophet, may Allah bless him and grant him peace, used tosay, "If someone fears that he will sleep through till the morning,let him pray the witr before he sleeps, and if some one hopes to wakefor the last part of the night, let him delay his witr."