Hadith.711 - Abu Al-Hasan al-Awwal, Imam Musa ibn Jafar Al-Kadhim عليه السلام was asked about a house that had been used as a latrine for a period of time and whether it would be suitable to make it into a mosque.
Imam عليه السلام said: "If it is cleaned and repaired, then there is no harm."