2:158
اِنَّ الصَّفَا وَالۡمَرۡوَةَ مِنۡ شَعَآئِرِ اللّٰهِۚ فَمَنۡ حَجَّ الۡبَيۡتَ اَوِ اعۡتَمَرَ فَلَا جُنَاحَ عَلَيۡهِ اَنۡ يَّطَّوَّفَ بِهِمَاؕ وَمَنۡ تَطَوَّعَ خَيۡرًاۙ فَاِنَّ اللّٰهَ شَاكِرٌ عَلِيۡمٌ
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