The Messenger of Allah (ﷺ) set out from Makkah to Al-Madinah, fearing nothing but the Lord of the worlds, and praying two rak'ahs.
Sunan an-Nasa'i Book 15, Hadith 3