Abu Tufayl reported,

I said to Ibn Abbas, "Tell me about this jogging around the Kaaba for three circuits and walking for four. Is it sunnah? Your people claim that it is sunnah."He replied, "They have spoken truly and they have spoken falsely."I asked, "What do you mean by 'they have spoken truly and they have spoken falsely'?"He said, "When the Messenger of Allah ﷺ arrived in Mecca, the polytheists said, 'Muhammad and his companions are too weak and emaciated to circumambulate the House.' They were envious of him. So the Messenger of Allah ﷺ ordered them to jog for three circuits and walk for four."I then asked him, "Tell me about going between Safa and Marwa while riding. Is it sunnah? Your people claim that it is sunnah."He replied, "They have spoken truly and they have spoken falsely."I asked, "What do you mean by 'they have spoken truly and they have spoken falsely'?"He said, "The people crowded around the Messenger of Allah ﷺ, saying, 'This is Muhammad, this is Muhammad,' until even the young maidens came out of their houses. The Messenger of Allah ﷺ would not have people struck aside before him, so when the crowd pressed upon him, he rode. But walking and going briskly on foot is better."

Azami 5002

Sahih

عن أبي الطفيل، قال

قلت لابن عباس: أرأيت هذا الرمل بالبيت ثلاثة أطواف ومشي أربعة أطواف أسنة هو، فإن قومك يزعمون أنه سنة؟ قال: فقال: صدقوا وكذبوا! قال: قلت ما قولك: صدقوا وكذبوا؟ قال: إن رسول الله ﷺ قدم مكة فقال المشركون: إن محمدا وأصحابه لا يستطيعون أن يطوفوا بالبيت من الهزال، وكانوا يحسدونه قال: فأمرهم رسول الله ﷺ أن يرملوا ثلاثا ويمشوا أربعا. قال: قلت له: أخبرني عن الطواف بين الصفا والمروة راكبا أسنة هو، فإن قومك يزعمون أنه سنة؟ قال: صدقوا وكذبوا! قال: قلت: وما قولك صدقوا وكذبوا؟ قال: إن رسول الله ﷺ كثر عليه الناس، يقولون: هذا محمد، هذا محمد، حتى خرج العواتق من البيوت. قال: وكان رسول الله ﷺ لا يضرب الناس بين يديه، فلما كثر عليه ركب، والمشي والسعي أفضل.

الأعظمي 5002صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Hajj
Chapter
Description of the Hajj of the Prophet ﷺ as narrated by Jabir and others, and the rulings mentioned therein
Section
Recommendation of ramal in the first three circuits of tawaf during Umrah, and in the first tawaf during Hajj
Numbering
Jami al-Kamil 5002 (2nd edition)
Azami 5002