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.
hakim:3069ʿAlī b. Ḥamshādh > Bishr b. Mūsá > Muḥammad b. Saʿīd b. al-Aṣbahānī > ʿAlī b. Mushir > Hishām b. ʿUrwah from his father > ʿĀʾishah

[Machine] This verse was revealed specifically to the Ansar, who were in the period of Ignorance (before Islam) when they performed the pilgrimage and were not allowed to perform the sa'i (the ritual of walking between Safa and Marwa). When we arrived (in Medina), we mentioned this to the Messenger of Allah ﷺ , and Allah revealed the following verse: "Indeed, Safa and Marwa are among the symbols of Allah" (Surah Al-Baqarah 2:158) until the end of the verse.  

الحاكم:٣٠٦٩حَدَّثَنَا عَلِيُّ بْنُ حَمْشَاذٍ ثنا بِشْرُ بْنُ مُوسَى ثنا مُحَمَّدُ بْنُ سَعِيدِ بْنِ الْأَصْبَهَانِيِّ ثنا عَلِيُّ بْنُ مُسْهِرٍ عَنْ هِشَامِ بْنِ عُرْوَةَ عَنْ أَبِيهِ عَنْ عَائِشَةَ قَالَتْ

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

هَذَا حَدِيثٌ صَحِيحٌ عَلَى شَرْطِ الشَّيْخَيْنِ على شرط البخاري ومسلم