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.
tirmidhi:2966ʿAbd b. Ḥumayd > Yazīd b. Abū Ḥakīm > Sufyān > ʿĀṣim al-Aḥwal > Saʾalt Anas b. Mālik > al-Ṣafā And al-Marwah

"I asked Anas bin Malik about As-Safa and Al-Marwah, and he said: 'They were among the rites of Jahiliyyah.' He said: 'So during Islam, we refrained from them, then Allah, Blessed and Most High, revealed: Indeed As-Safa and Al-Marwah are of the symbols of Allah. So it is not a sin for those who perform Hajj or 'Umrah to the house to go between them. (2:158)' He said: 'So it is voluntarily then verily, Allah is the All-Recogniser, the All-Knowing. (2:158)'"  

Abū ʿĪsá said that this Ḥadīth is Ḥasan-Ṣaḥīḥ.
الترمذي:٢٩٦٦حَدَّثَنَا عَبْدُ بْنُ حُمَيْدٍ حَدَّثَنَا يَزِيدُ بْنُ أَبِي حَكِيمٍ عَنْ سُفْيَانَ عَنْ عَاصِمٍ الأَحْوَلِ قَالَ سَأَلْتُ أَنَسَ بْنَ مَالِكٍ عَنِ الصَّفَا وَالْمَرْوَةِ فَقَالَ

كَانَا مِنْ شَعَائِرِ الْجَاهِلِيَّةِ فَلَمَّا كَانَ الإِسْلاَمُ أَمْسَكْنَا عَنْهُمَا فَأَنْزَلَ اللَّهُ ( إِنَّ الصَّفَا وَالْمَرْوَةَ مِنْ شَعَائِرِ اللَّهِ فَمَنْ حَجَّ الْبَيْتَ أَوِ اعْتَمَرَ فَلاَ جُنَاحَ عَلَيْهِ أَنْ يَطَّوَّفَ بِهِمَا ) قَالَ هُمَا تَطَوُّعٌ (فَمَنْ تَطَوَّعَ خَيْرًا فَإِنَّ اللَّهَ شَاكِرٌ عَلِيمٌ )  

قَالَ أَبُو عِيسَى هَذَا حَدِيثٌ حَسَنٌ صَحِيحٌ

See similar narrations below:

Collected by Qurʾān, Bukhārī, Muslim, Ḥākim
quran:2:158

Indeed, as-Safa and al-Marwah are among the symbols of Allah. So whoever makes Hajj to the House or performs 'umrah - there is no blame upon him for walking between them. And whoever volunteers good - then indeed, Allah is appreciative and Knowing.  

Truly Safā and Marwa, two mountains near Mecca, are among the waymarks (sha‘ā’ir, plural of sha‘īra) of God, the ˹ritual˺ ceremonies of His religion, so whoever makes the Pilgrimage to the House, or the Visitation, that is, whoever prepares to perform the Pilgrimage ˹hajj˺ or the Visitation ˹‘umra˺: the original sense of both terms ˹hajja and i‘tamara˺ is ‘to aim for’ and ‘to visit’, respectively; he would not be at fault, ˹it would not be˺ a sin, if he circumambulates them (the original tā’ ˹of yatatawwafa, ‘circumambulate’˺ has been assimilated with the tā’), by pacing quickly (sa‘y) between them seven times: this was revealed when the Muslims were averse to this ˹circumambulation˺, because the pagan Arabs used to circumambulate them, and there was an idol atop each mountain which they used to stroke. It is reported from Ibn ‘Abbās that this pacing ˹between the two˺ is not obligatory, based on the fact that when no sin can be incurred, the context implies free choice. Al-Shāfi‘ī and others, however, considered it to be a pillar ˹of the Pilgrimage rituals˺. The Prophet made clear its obligatory aspect when he said that, ‘God has prescribed for you the pacing ˹sa‘y˺’, as reported by al-Bayhaqī and others; and he ˹the Prophet˺ also said, ‘Begin with what God has begun’, meaning, al-Safā, as reported by Muslim; and whoever volunteers (tatawwa‘a: a variant reading is yattawa‘, the ta’ here being assimilated) good, that is, any good deed such as circumambulation or other, that is not obligatory on him; God is Grateful, for such a deed and rewards that person for it, Knowing, it.
القرآن:٢:١٥٨

إِنَّ الصَّفَا وَالْمَرْوَةَ مِنْ شَعَائِرِ اللَّهِ ۖ فَمَنْ حَجَّ الْبَيْتَ أَوِ اعْتَمَرَ فَلَا جُنَاحَ عَلَيْهِ أَنْ يَطَّوَّفَ بِهِمَا ۚ وَمَنْ تَطَوَّعَ خَيْرًا فَإِنَّ اللَّهَ شَاكِرٌ عَلِيمٌ  

(إن الصفا والمروة) جبلان بمكة (من شعائر الله) أعلام دينه جمع شعيرة (فمن حج البيت أو اعتمر) أي تلبس بالحج أو العمرة وأصلهما القصد والزيارة (فلا جناح عليه) إثم عليه (أن يطوف) فيه إدغام التاء في الأصل في الطاء (بهما) بأن يسعى بينهما سبعا، نزلت لما كره المسلمون ذلك لأن أهل الجاهلية كانوا يطوفون بهما وعليهما صنمان يمسحونهما، وعن ابن عباس أن السعي غير فرض لما أفاده رفع الإثم من التخيير وقال الشافعي وغيره ركن، وبين ﷺ فرضيته بقوله "" إن الله كتب عليكم السعي "" رواه البيهقي وغيره "" وقال ابدءوا بما بدأ الله به "" يعني الصفا رواه مسلم (ومن تطوع) وفي قراءة بالتحتية وتشديد الطاء مجزوما وفيه إدغام التاء فيها (خيرا) أي بخير أي عمل ما لم يجب عليه من طواف وغيره (فإن الله شاكر) لعمله بالإثابة عليه (عليم) به.
bukhari:1648Aḥmad b. Muḥammad > ʿAbdullāh > ʿĀṣim > Lʾanas b. Mālik Akuntum Takrahūn al-Saʿ Bayn al-Ṣafā And al-Marwah > Naʿam Lʾannahā

I asked Anas bin Malik: "Did you use to dislike to perform Tawaf between Safa and Marwa?" He said, "Yes, as it was of the ceremonies of the days of the Pre-Islamic period of ignorance, till Allah revealed: 'Verily! (The two mountains) As-Safa and Al-Marwa are among the symbols of Allah. It is therefore no sin for him who performs the pilgrimage to the Kaʿba, or performs ʿUmra, to perform Tawaf between them.' " (2.158)  

البخاري:١٦٤٨حَدَّثَنَا أَحْمَدُ بْنُ مُحَمَّدٍ أَخْبَرَنَا عَبْدُ اللَّهِ أَخْبَرَنَا عَاصِمٌ قَالَ

قُلْتُ لأَنَسِ بْنِ مَالِكٍ ؓ: أَكُنْتُمْ تَكْرَهُونَ السَّعْىَ بَيْنَ الصَّفَا وَالْمَرْوَةِ؟ قَالَ: نَعَمْ، لأَنَّهَا كَانَتْ مِنْ شَعَائِرِ الْجَاهِلِيَّةِ حَتَّى أَنْزَلَ اللَّهُ {إِنَّ الصَّفَا وَالْمَرْوَةَ مِنْ شَعَائِرِ اللَّهِ فَمَنْ حَجَّ الْبَيْتَ أَوِ اعْتَمَرَ فَلاَ جُنَاحَ عَلَيْهِ أَنْ يَطَّوَّفَ بِهِمَا}  

bukhari:4496Muḥammad b. Yūsuf > Sufyān > ʿĀṣim b. Sulaymān > Saʾalt Anas b. Mālik > al-Ṣafā And al-Marwah

I asked Anas bin Malik about Safa and Marwa. Anas replied, "We used to consider (i.e. going around) them a custom of the Pre-islamic period of Ignorance, so when Islam came, we gave up going around them. Then Allah revealed" "Verily, Safa and Marwa (i.e. two mountains at Mecca) are among the Symbols of Allah. So it is not harmful of those who perform the Hajj of the House (of Allah) or perform the Umra to ambulate (Tawaf) between them." (2.158)  

البخاري:٤٤٩٦حَدَّثَنَا مُحَمَّدُ بْنُ يُوسُفَ حَدَّثَنَا سُفْيَانُ عَنْ عَاصِمِ بْنِ سُلَيْمَانَ قَالَ سَأَلْتُ أَنَسَ بْنَ مَالِكٍ ؓ عَنِ الصَّفَا وَالْمَرْوَةِ فَقَالَ

كُنَّا نَرَى أَنَّهُمَا مِنْ أَمْرِ الْجَاهِلِيَّةِ فَلَمَّا كَانَ الإِسْلاَمُ أَمْسَكْنَا عَنْهُمَا فَأَنْزَلَ اللَّهُ تَعَالَى {إِنَّ الصَّفَا وَالْمَرْوَةَ } إِلَى قَوْلِهِ {أَنْ يَطَّوَّفَ بِهِمَا}  

muslim:1277eḤarmalah b. Yaḥyá > Ibn Wahb > Yūnus > Ibn Shihāb > ʿUrwah b. al-Zubayr > ʿĀʾishah > al-Anṣār Kānūā Qabl > Yuslimūā > Waghassān Yuhillūn Limanāh Fataḥarrajūā > Yaṭūfūā

" Verily al-Safa' and al-Marwa are among the Signs of Allah" ; so he who performs Hajj or Umra, for him there is no harm if he should circumambulate between them, and he who does good spontaneously-surely Allah is Bountiful in rewarding and Knowing.  

مسلم:١٢٧٧eوَحَدَّثَنَا حَرْمَلَةُ بْنُ يَحْيَى أَخْبَرَنَا ابْنُ وَهْبٍ أَخْبَرَنِي يُونُسُ عَنِ ابْنِ شِهَابٍ عَنْ عُرْوَةَ بْنِ الزُّبَيْرِ أَنَّ عَائِشَةَ أَخْبَرَتْهُ أَنَّ الأَنْصَارَ كَانُوا قَبْلَ

أَنْ يُسْلِمُوا هُمْ وَغَسَّانُ يُهِلُّونَ لِمَنَاةَ فَتَحَرَّجُوا أَنْ يَطُوفُوا بَيْنَ الصَّفَا وَالْمَرْوَةِ وَكَانَ ذَلِكَ سُنَّةً فِي آبَائِهِمْ مَنْ أَحْرَمَ لِمَنَاةَ لَمْ يَطُفْ بَيْنَ الصَّفَا وَالْمَرْوَةِ وَإِنَّهُمْ سَأَلُوا رَسُولَ اللَّهِ ﷺ عَنْ ذَلِكَ حِينَ أَسْلَمُوا فَأَنْزَلَ اللَّهُ ﷻ فِي ذَلِكَ { إِنَّ الصَّفَا وَالْمَرْوَةَ مِنْ شَعَائِرِ اللَّهِ فَمَنْ حَجَّ الْبَيْتَ أَوِ اعْتَمَرَ فَلاَ جُنَاحَ عَلَيْهِ أَنْ يَطَّوَّفَ بِهِمَا وَمَنْ تَطَوَّعَ خَيْرًا فَإِنَّ اللَّهَ شَاكِرٌ عَلِيمٌ}  

hakim:3070Abū al-ʿAbbās Muḥammad b. Yaʿqūb > Usayd b. ʿĀṣim al-Aṣbahānī > al-Ḥusayn b. Ḥafṣ > Sufyān > ʿĀṣim > Saʾalt Anas b. Mālik > al-Ṣafā And al-Marwah

"I asked Anas bin Malik about As-Safa and Al-Marwah, and he said: 'They were among the rites of Jahiliyyah.' He said: 'So during Islam, we refrained from them, then Allah, Blessed and Most High, revealed: Indeed As-Safa and Al-Marwah are of the symbols of Allah. So it is not a sin for those who perform Hajj or 'Umrah to the house to go between them. (2:158)' He said: 'So it is voluntarily then verily, Allah is the All-Recogniser, the All-Knowing. (2:158)'" (Using translation from Tirmidhī 2966)   

الحاكم:٣٠٧٠حَدَّثَنَا أَبُو الْعَبَّاسِ مُحَمَّدُ بْنُ يَعْقُوبَ ثنا أُسَيْدُ بْنُ عَاصِمٍ الْأَصْبَهَانِيُّ ثنا الْحُسَيْنُ بْنُ حَفْصٍ عَنْ سُفْيَانَ عَنْ عَاصِمٍ قَالَ سَأَلْتُ أَنَسَ بْنَ مَالِكٍ عَنِ الصَّفَا وَالْمَرْوَةِ قَالَ

كَانَتَا مِنْ مَشَاعِرِ الْجَاهِلِيَّةِ فَلَمَّا كَانَ الْإِسْلَامُ أَمْسَكْنَا عَنْهُمَا فَأَنْزَلَ اللَّهُ {إِنَّ الصَّفَا وَالْمَرْوَةَ مِنْ شَعَائِرِ} [البقرة 158] اللَّهِ فَمَنْ حَجَّ الْبَيْتَ أَوِ اعْتَمَرَ فَلَا جُنَاحَ عَلَيْهِ أَنْ يَطَّوَّفَ بِهِمَا وَمَنْ تَطَوَّعَ خَيْرًا الْآيَةُ  

«هَذَا حَدِيثٌ صَحِيحٌ عَلَى شَرْطِ الشَّيْخَيْنِ وَلَمْ يُخَرِّجَاهُ» على شرط البخاري ومسلم
hakim:3073Abū Aḥmad Muḥammad b. Aḥmad al-Ṣaffār al-ʿAdl > Aḥmad b. Muḥammad b. Naṣr > ʿAmr b. Ṭalḥah al-Qannād > Asbāṭ b. Naṣr > al-Suddī > Abū Mālik

[Machine] In the pre-Islamic era, the devils used to play music all night long between Safa and Marwa. They had idols, which they worshipped. When Islam came, the Muslims said to the Prophet Muhammad, "O Messenger of Allah, we will no longer perform the rite of Sa'y (walking) between Safa and Marwa, as it is something we used to do in the pre-Islamic era." Then Allah revealed the verse, "Indeed, as for those who perform Hajj to the Ka'bah or 'umrah, there is no blame upon them for walking between them" (Quran 2:158). This means that there is no sin upon them, but they will be rewarded.  

الحاكم:٣٠٧٣أَخْبَرَنَا أَبُو أَحْمَدَ مُحَمَّدُ بْنُ أَحْمَدَ الصَّفَّارُ الْعَدْلُ ثنا أَحْمَدُ بْنُ مُحَمَّدِ بْنِ نَصْرٍ ثنا عَمْرُو بْنُ طَلْحَةَ الْقَنَّادُ ثنا أَسْبَاطُ بْنُ نَصْرٍ عَنِ السُّدِّيِّ عَنْ أَبِي مَالِكٍ عَنِ ابْنِ عَبَّاسٍ

فِي قَوْلِهِ تَعَالَى {إِنَّ الصَّفَا وَالْمَرْوَةَ مِنْ شَعَائِرِ اللَّهِ} [البقرة 158] قَالَ كَانَتِ الشَّيَاطِينُ فِي الْجَاهِلِيَّةِ تَعْزِفُ اللَّيْلَ أَجْمَعَ بَيْنَ الصَّفَا وَالْمَرْوَةِ وَكَانَتْ فِيهَا آلِهَةٌ لَهُمْ أَصْنَامٌ فَلَمَّا جَاءَ الْإِسْلَامُ قَالَ الْمُسْلِمُونَ يَا رَسُولَ اللَّهِ لَا نَطُوفُ بَيْنَ الصَّفَا وَالْمَرْوَةِ فَإِنَّهُ شَيْءٌ كُنَّا نَصْنَعُهُ فِي الْجَاهِلِيَّةِ فَأَنْزَلَ اللَّهُ {فَمَنْ حَجَّ الْبَيْتَ أَوِ اعْتَمَرَ فَلَا جُنَاحَ عَلَيْهِ أَنْ يَطَّوَّفَ بِهِمَا} [البقرة 158] يَقُولُ لَيْسَ عَلَيْهِ إِثْمٌ وَلَكِنْ لَهُ أَجْرٌ  

«هَذَا حَدِيثٌ صَحِيحٌ عَلَى شَرْطِ مُسْلِمٍ وَلَمْ يُخَرِّجَاهُ» على شرط مسلم