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.
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.”
‘A’isha told of God's Messenger as saying in his illness from which he did not recover, “God curse the Jews and Christians! They have taken the graves of their prophets as mosques.”