Sunan an-Nasa'i, Book 5, Hadith 9 (Nasa'i 458)

It was narrated that Ibn 'Abbas said:

"The Salah was enjoined on the lips of the Prophet (ﷺ), four Rak'ahs while resident, and two while traveling, and one Rak'ah during times of fear."