[Machine] I begin with Safa before Marwa, or I begin with Marwa before Safa, and I pray before circumambulating (the Kaaba) or I circumambulate before praying, and I shave before slaughtering, or I slaughter before shaving? Ibn Abbas said: "Take this from the Book of Allah, for it is more deserving to be preserved." Allah the Almighty said: "Indeed, Safa and Marwa are among the symbols of Allah." (2:158) "So Safa is before Marwa." And He said: "Do not shave your heads until the sacrificial animal reaches its place of slaughter." (2:196) "So the sacrifice is before shaving." And He said: "Purify My house for those who perform Tawaf and those who stay in it for worship, and for those who bow and prostrate." (2:125) "So Tawaf is before prayer."
أَبْدَأُ بِالصَّفَا قَبْلَ الْمَرْوَةِ أَوْ أَبْدَأُ بِالْمَرْوَةِ قَبْلَ الصَّفَا وَأُصَلِّي قَبْلَ أَنْ أَطُوفَ أَوْ أَطُوفُ قَبْلَ أَنْ أُصَلِّيَ وَأَحْلِقُ قَبْلَ أَنْ أَذْبَحَ أَوْ أَذْبَحُ قَبْلَ أَنْ أَحْلِقَ؟ فَقَالَ ابْنُ عَبَّاسٍ «خُذْ ذَاكَ مِنْ كِتَابِ اللَّهِ فَإِنَّهُ أَجْدَرُ أَنْ يُحْفَظَ» قَالَ اللَّهُ تَعَالَى {إِنَّ الصَّفَا وَالْمَرْوَةَ مِنْ شَعَائِرِ اللَّهِ} [البقرة 158] «فَالصَّفَا قَبْلَ الْمَرْوَةِ» وَقَالَ {لَا تَحْلِقُوا رُءُوسَكُمْ حَتَّى يَبْلُغَ الْهَدْيُ مَحِلَّهُ} «فَالذَّبْحُ قَبْلَ الْحَلْقِ» وَقَالَ {طَهِّرَا بَيْتِيَ لِلطَّائِفِينَ وَالْعَاكِفِينَ وَالرُّكَّعِ السُّجُودِ} [البقرة 125] «فَالطَّوَافُ قَبْلَ الصَّلَاةِ»