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.
Hadith Referenceمشكوة المصابيح / كتاب الصلاة / 737
Hadith Gradingالألبانی:صَحِيحٌ | زبیر علی زئی:إسناده صحيح
Hadith Takhrij´تحقيق و تخريج: محدث العصر حافظ زبير على زئي رحمه الله` «إسناده صحيح، رواه أبو داود (492) والترمذي (317) والدارمي (323/1 ح 1397) [و ابن ماجه (745) و صححه ابن حبان (338، 339) والحاکم علٰي شرط الشيخين (1/ 251) ووافقه الذهبي .]»