Allah, the Exalted, prescribed prayer for you, through the tongue of your Prophet (ﷺ)…

Sunan Abu Dawud Book 4 Hadith 50

Sunan Abu Dawud #1247

Prayer (Kitab Al-Salat): Detailed Rules of Law about the Prayer during Journey 4:50

Narrated Ibn 'Abbas:

Allah, the Exalted, prescribed prayer for you, through the tongue of your Prophet (ﷺ), four rak'ahs while resident, two rak'ahs while travelling and one rak'ah in time of danger.

Chapter: Those Who Said That The Imam Should Lead Each Group For One Rak'ah And Then They Should Not Complete (The Second Rak'ah)

Grade: Sahih (Al-Albani)