Sahih al-Bukhari, Book 63, Hadith 160 (Bukhari 3772)
Narrated `Aisha:
Originally, two rak`at were prescribed in every prayer. When the Prophet (ﷺ) migrated (to Medina) four rak`at were enjoined, while the journey prayer remained unchanged(i.e. two rak`at).