The Prophet said: "Stoning the Jimari and Sa'i between As-Safa and Al-Marwah are only done for the establishment of Allah's remembrance."
عَنِ النَّبِيِّ ﷺ قَالَ إِنَّمَا جُعِلَ رَمْىُ الْجِمَارِ وَالسَّعْىُ بَيْنَ الصَّفَا وَالْمَرْوَةِ لإِقَامَةِ ذِكْرِ اللَّهِ