Urwa reported,

I recited to Ayesha the verse "there is no blame on him to walk between them" and said, "I would not mind if I did not walk between them."She replied, "What a terrible thing to say! In the days of ignorance, some people refused to walk between them. When Islam came and the Quran was revealed with the verse "Indeed, Safa and Marwa are among the symbols of Allah" [Baqarah 2:158], the Messenger of Allah ﷺ walked between them and we walked with him, so it became an established practice."

Nasai 2970

Sahih

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

عن عروة قال

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

النسائي 2970صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Rituals of Hajj
Chapter
Safa and Marwa
Numbering
Darussalam 2970
Nasai 2970