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.”
Abu Dawud, Nasa’i and Ibn Majah transmitted it.