Urwa bin Zubayr reported,

I said to Ayesha, the wife of the Prophet ﷺ, being young in age at the time, "What do you make of Allah's statement تبارك وتعالى, 'Indeed, Safa and Marwa 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' [Baqarah 2:158]? It seems to me that there is nothing wrong if a person does not walk between them."Ayesha replied, "Not at all. If it were as you say, the verse would have read, 'there is no blame upon him for not walking between them.' This verse was revealed concerning the Ansar. They used to enter the state of ihram for the idol Manat, and Manat stood opposite Qudayd. They felt uneasy about walking between Safa and Marwa. When Islam came, they asked the Messenger of Allah ﷺ about this, and Allah revealed, 'Indeed, Safa and Marwa 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' [Baqarah 2:158]."

Bukhari 4495

Sahih

حدثنا عبد الله بن يوسف أخبرنا مالك

عن هشام بن عروة عن أبيه أنه قال

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

البخاري 4495صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Tafsir
Chapter
His saying, "Indeed Safa and Marwa are among the rites of Allah. So whoever performs 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, Aleem"
Numbering
Darussalam 4495
Bukhari 4495