The Book of Prayer
Bulugh al-Maram #519
كتاب الصلاة
وَعَنْهُ قَالَ: «خَرَجْنَا مَعَ رَسُولِ اَللَّهِ - صلى الله عليه وسلم -مِنْ اَلْمَدِينَةِ إِلَى مَكَّةَ، فَكَانَ يُصَلِّي رَكْعَتَيْنِ رَكْعَتَيْنِ حَتَّى رَجَعْنَا إِلَى اَلْمَدِينَةِ» مُتَّفَقٌ عَلَيْهِ, وَاللَّفْظُ لِلْبُخَارِيِّ.
Narrated:
We went from al-Madinah to Makkah with Allah's Messenger (ﷺ) and he prayed two Rak'at at each time of prayer till we returned to al-Madinah.
وَعَنْهُ قَالَ: "خَرَجْنَا مَعَ رَسُولِ اَللَّهِ - صلى الله عليه وسلم -مِنْ اَلْمَدِينَةِ إِلَى مَكَّةَ، فَكَانَ يُصَلِّي رَكْعَتَيْنِ رَكْعَتَيْنِ حَتَّى رَجَعْنَا إِلَى اَلْمَدِينَةِ" مُتَّفَقٌ عَلَيْهِ, وَاللَّفْظُ لِلْبُخَارِيِّ .
We went from al-Madinah to Makkah with Allah's Messenger (ﷺ) and he prayed two Rak'at at each time of prayer till we returned to al-Madinah.
— Bulugh al-Maram, Hadith 519