The prophet salla Allahu alahi wa sallam said: “Do not pray Witr with three rak’ahs like Maghrib.” Narrated by al-Haakim, 1/403; al-Bayhaqi, 3/31; al-Daaraqutni, p. 172. Al-Haafiz ibn Hajar said in Fath al-Baari (4/301): Its isnaad fulfils the conditions of the two Shaykhs (al-Bukhaari and Muslim).