Hadith Q1205
وَالنَّهْيِ عَنِ اتِّخَاذِ الْبُيُوتِ قُبُورًا فَيَتَحَامَى الصَّلَاةَ فِيهِنَّ وَهَذَا الْخَبَرُ دَالٌّ عَلَى الزَّجْرِ عَنِ الصَّلَاةِ فِي الْمَقَابِرِ
And the prohibition of making houses like graveyards, that is, not to perform prayers in them, and this hadith is evidence for the prohibition of performing prayers in graveyards.
Hadith 1205
Sayyiduna Ibn Umar (may Allah be pleased with them) narrates from the Noble Prophet (peace and blessings be upon him) that he (peace be upon him) said: "Offer some portion of your prayers in your homes and do not make them like graveyards."