It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them both) that once a Bedouin asked the Prophet (peace and blessings be upon him): "At that time, I was between the Prophet (peace and blessings be upon him) and that Bedouin." O Messenger of Allah! What do you command us regarding the night prayer? He said: "You should pray in sets of two rak'ahs, and when you fear that morning is near, then add one rak'ah to those two, and perform two rak'ahs before Fajr."