Anas bin Malik reported,

The Ansar used to dislike performing the rite of going between Safa and Marwa, until the verse was 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].

Muslim 3084

Sahih

و حدثنا أبو بكر بن أبي شيبة حدثنا أبو معاوية عن عاصم

عن أنس قال

كانت الأنصار يكرهون أن يطوفوا بين الصفا والمروة حتى نزلت {إن الصفا والمروة من شعائر الله فمن حج البيت أو اعتمر فلا جناح عليه أن يطوف بهما}

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