[Machine] The Messenger of Allah ﷺ said, "The entire earth is a masjid (place of prayer), except for the bathroom and the graveyard." "All these chains of narration (Asanid) are authentic according to the conditions of Bukhari and Muslim, and they did not exclude it (the hadith)." Both of them, meaning Bukhari and Muslim, refer to this hadith with the number 919, according to the conditions of Bukhari and Muslim.
قَالَ رَسُولُ اللَّهِ ﷺ «الْأَرْضُ كُلُّهَا مَسْجِدٌ إِلَّا الْحَمَّامَ وَالْمَقْبَرَةَ» «هَذِهِ الْأَسَانِيدُ كُلُّهَا صَحِيحَةٌ عَلَى شَرْطِ الْبُخَارِيِّ وَمُسْلِمٍ وَلَمْ يُخَرِّجَاهُ» كلاهما يعني هذا الحديث ورقم 919 على شرط البخاري ومسلم