Sahih Muslim 2225: The Pilgrimage (Hajj)
Hisham bin Urwah narrates from his father, and he from Hazrat Aishah (ra), who said: I said to her (Hazrat Aishah (ra)): I think that if a person does not run (Sa'i) between Safa and Marwah, there is no harm to him? She said: Why? I said: Because Allah the Exalted says: “Surely, As-Safa and Al-Marwah are among the Signs of Allah. It is, therefore, no sin for him who is on pilgrimage to the House, or performs ‘Umrah, to go round the two. And whoso does good beyond what is obligatory, surely then, Allah is Appreciating, All-Knowing.” (Qur’an 2:159) She said: Allah does not (declare) complete the Hajj and Umrah of one who has not gone round between Safa and Marwah. And if the matter were as you say, it would have been thus: “la junaha alaihi an la yattawwafa bihima” (it is no sin for him not to go round the two). And do you know why it was so put? This was because in the Age of Ignorance (Jahiliyyah) the Ansar (ra) used to enter the state of consecration (Ihram) on the seashore for their two idols, which were called Isaf and Na'ilah. Then they would come and go round Safa and Marwah, then they would have their heads shaved. When Islam came, they disliked going round these two (Safa and Marwah), because they used to do so in the Age of Ignorance. She says: At this Allah the Exalted revealed (this verse): “Surely, As-Safa and Al-Marwah are among the Signs of Allah...” (Qur’an 2:159). She said: Then they began to go round them.
AI-translated by Islam-Today