It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them) that the Messenger of Allah (peace and blessings be upon him) said: "The night prayer is in sets of two rak'ahs. When you fear that dawn is approaching, then make your prayer odd by performing one rak'ah."
Related hadith on this topic