Sayyiduna Abu Sa'id Khudri (may Allah be pleased with him) narrates that the Messenger of Allah (peace and blessings be upon him) said: "All of the earth is a mosque except for graveyards and bathhouses."
Hadith Referenceصحيح ابن خزيمه / جماع أبواب المواضع التى تجوز الصلاة عليها، والمواضع التى زجر عن الصلاة عليها / 791