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 Reference صحيح ابن خزيمه / جماع أبواب التطوع غير ما تقدم ذكرنا لها / Q1205