(63) باب مَنْ طَافَ بِالْبَيْتِ إِذَا قَدِمَ مَكَّةَ، قَبْلَ أَنْ يَرْجِعَ إِلَى بَيْتِهِ، ثُمَّ صَلَّى رَكْعَتَيْنِ، ثُمَّ خَرَجَ إِلَى الصَّفَا
Narrated `Abdullah bin `Umar:
When Allah's Messenger (ﷺ) performed Tawaf of the Ka`ba for Hajj or `Umra, he used to do Ramal during the first three rounds, and in the last four rounds he used to walk; then after the Tawaf he used to offer two rak`at and then performed Tawaf between Safa and Marwa.
Reference: Sahih al-Bukhari 1616
In-book reference: Book 25, Hadith 101
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 2, Book 26, Hadith 684