Abd al-Rahman bin Yazid narrates that Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) said: "Witr is three rak'ahs, like the Maghrib prayer."