إِنَّ الصَّفا وَالمَروَةَ مِن شَعائِرِ اللَّهِ ۖ فَمَن حَجَّ البَيتَ أَوِ اعتَمَرَ فَلا جُناحَ عَلَيهِ أَن يَطَّوَّفَ بِهِما ۚ وَمَن تَطَوَّعَ خَيرًا فَإِنَّ اللَّهَ شاكِرٌ عَليمٌ
Indeed, as-Safa and al-Marwah 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.