2. Ṣalāh (Ritual Prayer)
٢۔ كتاب الصلاة
The earth has been made for me purifying and as a mosque (place for prayer).
قَالَ رَسُولُ اللَّهِ ﷺ جُعِلَتْ لِيَ الأَرْضُ طَهُورًا وَمَسْجِدًا
AbuSalih al-Ghifari reported: Ali (once) passed by Babylon during his travels. The mu'adhdhin (the person who calls for prayer) came to him to call for the afternoon prayer. When he passed by that place, he commanded to announce for the prayer. After finishing the prayer he said: My affectionate friend (i.e. the Prophet) prohibited me to say prayer in the graveyard. He also forbade me to offer prayer in Babylon because it is accursed.
أَنَّ عَلِيًّا ؓ مَرَّ بِبَابِلَ وَهُوَ يَسِيرُ فَجَاءَهُ الْمُؤَذِّنُ يُؤَذِّنُ بِصَلاَةِ الْعَصْرِ فَلَمَّا بَرَزَ مِنْهَا أَمَرَ الْمُؤَذِّنَ فَأَقَامَ الصَّلاَةَ فَلَمَّا فَرَغَ قَالَ إِنَّ حَبِيبِي ﷺ نَهَانِي أَنْ أُصَلِّيَ فِي الْمَقْبُرَةِ وَنَهَانِي أَنْ أُصَلِّيَ فِي أَرْضِ بَابِلَ فَإِنَّهَا مَلْعُونَةٌ
Abu Salih narrated this tradition with a different chain of transmitters to the same effect as reported by Sulaiman b. Dawud. But this version has the word KHARAJA (he went out) instead of BARAZA (proceeded).
فَلَمَّا خَرَجَ مَكَانَ فَلَمَّا بَرَزَ
and the narrator Musa said: As far as Amr thinks, the Prophet ﷺ said: The whole earth is a place of prayer except public baths and graveyards.
قَالَ رَسُولُ اللَّهِ ﷺ وَقَالَ مُوسَى فِي حَدِيثِهِ فِيمَا يَحْسَبُ عَمْرٌو أَنَّ النَّبِيَّ ﷺ قَالَ الأَرْضُ كُلُّهَا مَسْجِدٌ إِلاَّ الْحَمَّامَ وَالْمَقْبُرَةَ