711. hadíth
وَ سُئِلَ: عَنْ بَيْتٍ قَدْ كَانَ حَشّاً زَمَاناً هَلْ يَصْلُحُ أَنْ يُجْعَلَ مَسْجِداً فَقَالَ «إِذَا نُظِّفَ وَ أُصْلِحَ فَلاَ بَأْسَ.
Abu Al-Hasan al-Awwal, Imam Musa ibn Jafar Al-Kadhim (a.s) 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 (a.s) said: "If it is cleaned and repaired, then there is no harm."