From Sahih Muslim (Hadith 1749):
Salim reported on the authority of his father that a person asked the Messenger of Allah (ﷺ) about the night prayer. He said:It consists of pairs of rak'ahs, but if one fears morning is near, he should make it an odd number by praying one rak'ah
Reference: Muslim 1749