‘Abdallah b. Abu Qais said he asked ‘A’isha how many rak'as God’s Messenger prayed when observing a witr and she replied, “He used to observe a witr with four and three, six and three, eight and three, and ten and three, never observing one with less than seven or more than thirteen.”
I asked ‘A’isha whether she had seen God’s Messenger bathing because of sexual defilement in the early or the latter part of the night, and she replied, ‘‘He often bathed in the early part of the night and often in the latter part.” Thereupon I said, "God is most great. Praise be to God who has given latitude in the matter! ” I then asked whether he observed a witr in the early or the latter part of the night, and she replied, "He often observed it in the early part and often in the latter part of the night.” Thereupon I said, “God is most great. Praise be to God who has given latitude in the matter! ” I then asked whether he recited the Qur’an in a loud or in a low voice, and she replied, “He often recited it in a loud voice and often in a low voice.” Thereupon I said, “God is most great. Praise be to God who has given latitude in the matter!”
Abu Dawud transmitted it, and Ibn Majah transmitted the last section.
Abu Ayyub reported God’s Messenger as saying, “The witr is a duty for every Muslim, so if anyone wishes to observe it with five rak'as he may do so; if anyone wishes to observe it with three he may do so; and if anyone wishes to observe it with one he may do so.”