عَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «مَا بَيْنَ الْمَشْرِقِ وَالْمَغْرِبِ قِبْلَةٌ» . رَوَاهُ التِّرْمِذِيُّ
Translation

Abu Sa'id reported God’s Messenger as saying, “The whole earth is a mosque, with the exception of a graveyard and a bath.” Abu Dawud, Tirmidhi and Darimi transmitted it.