Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bukhari:1649ʿAlī b. ʿAbdullāh > Sufyān > ʿAmr b. Dīnār > ʿAṭāʾ > Ibn ʿAbbās

Messenger of Allah ﷺ performed Tawaf of the Kaʿba and the Saʿi of Safa and Marwa so as to show his strength to the pagans.  

البخاري:١٦٤٩حَدَّثَنَا عَلِيُّ بْنُ عَبْدِ اللَّهِ حَدَّثَنَا سُفْيَانُ عَنْ عَمْرِو بْنِ دِينَارٍ عَنْ عَطَاءٍ عَنِ ابْنِ عَبَّاسٍ ؓ قَالَ

إِنَّمَا سَعَى رَسُولُ اللَّهِ ﷺ بِالْبَيْتِ وَبَيْنَ الصَّفَا وَالْمَرْوَةِ لِيُرِيَ الْمُشْرِكِينَ قُوَّتَهُ زَادَ الْحُمَيْدِيُّ حَدَّثَنَا سُفْيَانُ حَدَّثَنَا عَمْرٌو سَمِعْتُ عَطَاءً عَنِ ابْنِ عَبَّاسٍ مِثْلَهُ  


See similar narrations below:

Collected by Tirmidhī
tirmidhi:863Qutaybah > Sufyān b. ʿUyaynah > ʿAmr b. Dīnār > Ṭāwus > Ibn ʿAbbās

"The Messenger of Allah only performed the Sa'i of the House and of As-Safa and Al-Marwah to show his strength to the idolaters."  

الترمذي:٨٦٣حَدَّثَنَا قُتَيْبَةُ حَدَّثَنَا سُفْيَانُ بْنُ عُيَيْنَةَ عَنْ عَمْرِو بْنِ دِينَارٍ عَنْ طَاوُسٍ عَنِ ابْنِ عَبَّاسٍ قَالَ

إِنَّمَا سَعَى رَسُولُ اللَّهِ ﷺ بِالْبَيْتِ وَبَيْنَ الصَّفَا وَالْمَرْوَةِ لِيُرِيَ الْمُشْرِكِينَ قُوَّتَهُ قَالَ وَفِي الْبَابِ عَنْ عَائِشَةَ وَابْنِ عُمَرَ وَجَابِرٍ  

قَالَ أَبُو عِيسَى حَدِيثُ ابْنِ عَبَّاسٍ حَدِيثٌ حَسَنٌ صَحِيحٌ وَهُوَ الَّذِي يَسْتَحِبُّهُ أَهْلُ الْعِلْمِ أَنْ يَسْعَى بَيْنَ الصَّفَا وَالْمَرْوَةِ فَإِنْ لَمْ يَسْعَ وَمَشَى بَيْنَ الصَّفَا وَالْمَرْوَةِ رَأَوْهُ جَائِزًا