Ayesha reported,

I said to her, "I think a man would not be harmed if he did not make the rounds between Safa and Marwa."She asked, "Why?"I replied, "Because Allah the Exalted says, 'Indeed, Safa and Marwa are among the symbols of Allah' to the end of the verse."She said, "Allah does not complete a person's Hajj or Umrah if he does not make the rounds between Safa and Marwa. Had it been as you say, the verse would have read, 'there is no blame on him if he does not make the rounds between them.' Do you know the reason behind this? It was because the Ansar used to enter ihram in the days of ignorance for two idols on the seashore called Isaf and Naila. Then they would come and make the rounds between Safa and Marwa, and then shave their heads. When Islam came, they disliked making the rounds between them because of what they used to do in the days of ignorance."She continued, "So Allah عز وجل revealed, 'Indeed, Safa and Marwa are among the symbols of Allah' to the end of the verse."She said, "So they made the rounds."

Muslim 3079

Sahih

حدثنا يحيى بن يحيى حدثنا أبو معاوية عن هشام بن عروة عن أبيه

عن عائشة قال

قلت لها إني لأظن رجلا لو لم يطف بين الصفا والمروة ما ضره قالت لم قلت لأن الله تعالى يقول {إن الصفا والمروة من شعائر الله} إلى آخر الآية فقالت ما أتم الله حج امرئ ولا عمرته لم يطف بين الصفا والمروة ولو كان كما تقول لكان فلا جناح عليه أن لا يطوف بهما وهل تدري فيما كان ذاك إنما كان ذاك أن الأنصار كانوا يهلون في الجاهلية لصنمين على شط البحر يقال لهما إساف ونائلة ثم يجيئون فيطوفون بين الصفا والمروة ثم يحلقون فلما جاء الإسلام كرهوا أن يطوفوا بينهما للذي كانوا يصنعون في الجاهلية قالت فأنزل الله عز وجل {إن الصفا والمروة من شعائر الله} إلى آخرها قالت فطافوا

مسلم 3079صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Hajj
Chapter
Clarification that the walking between Safa and Marwa is a pillar without which Hajj is not valid
Numbering
Darussalam 3079
Muslim 3079