Ibn ‘Umar reported God’s Messenger as saying, “Perform some of your prayer in your houses, and do not turn them into graves.”*
* This is most probably a figurative expression indicating that a house in which prayer is not offered is like a grave, as God is not worshipped there.
Talq b. ‘Ali said; we went out as a deputation to God’s Messenger and swore allegiance to him and prayed along with him. We told him that we had a church in our land, and we asked him for some of the leavings of the water he used for ablution. He called for water, performed ablution, rinsed his mouth, then poured it out for us into a skin vessel, and gave us the following command, “Go away, and when you come to your land break down your church, sprinkle this water on its site, and use it as a mosque." We told him that our land was distant, the heat severe, and that the water would evaporate, to which he replied, “Add some water to it, for it will only bring more good to it.”
Jundub told of his hearing the Prophet say, “Those who preceded you used to take the graves of their prophets and righteous men as mosques, but you must not take graves as mosques; I forbid you to do that.”