Ayesha reported,

Before they embraced Islam, the Ansar and the tribe of Ghassan used to enter the state of pilgrimage in devotion to the idol Manat, and so they felt uneasy about performing the saee between Safa and Marwa. This had been an established custom among their forefathers, that whoever entered ihram for Manat would not walk between Safa and Marwa.When they accepted Islam, they asked the Messenger of Allah ﷺ about this, and Allah عز وجل revealed concerning the matter, "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. And whoever volunteers good, then indeed, Allah is Appreciative and Knowing." [Baqarah 2:158]

Muslim 3083

Sahih

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

عائشة أخبرته

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

مسلم 3083صحيح
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 3083
Muslim 3083