Sahih Bukhari – Hadith No : 4302

Narrated Ibn `Abbas: The Prophet hastened in going around the Ka`ba and between the Safa and Marwa in order to show the pagans his strength. Ibn `Abbas added, “When the Prophet arrived (at Mecca) in the year of peace (following that of Al-Hudaibiya treaty with the pagans of Mecca), he (ordered his companions) to do Ramal in order to show their strength to the pagans and the pagans were watching (the Muslims) from (the hill of) Quaiqan.

Hadith In Arabic Text :

حدثني محمد، عن سفيان بن عيينة، عن عمرو، عن عطاء، عن ابن عباس رضى الله عنهما قال إنما سعى النبي صلى الله عليه وسلم بالبيت وبين الصفا والمروة ليري المشركين قوته‏.‏

Chapter : Military Expeditions led by the Prophet (pbuh) (Al-Maghaazi) – كتاب المغازى