Language:
كتاب الصلاة
8  
Prayers (Salat)
(52)
Chapter: The dislikeness of offering As-Salat (the prayers) in grave-yards
(52)
باب كَرَاهِيَةِ الصَّلاَةِ فِي الْمَقَابِرِ
Sahih al-Bukhari 432

Narrated Ibn `Umar:

The Prophet (ﷺ) had said, "Offer some of your prayers (Nawafil) at home, and do not take your houses as graves."

حَدَّثَنَا مُسَدَّدٌ، قَالَ حَدَّثَنَا يَحْيَى، عَنْ عُبَيْدِ اللَّهِ، قَالَ أَخْبَرَنِي نَافِعٌ، عَنِ ابْنِ عُمَرَ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ ‏ "‏ اجْعَلُوا فِي بُيُوتِكُمْ مِنْ صَلاَتِكُمْ، وَلاَ تَتَّخِذُوهَا قُبُورًا ‏"‏‏.‏
Reference : Sahih al-Bukhari 432
In-book reference : Book 8, Hadith 82
USC-MSA web (English) reference : Vol. 1, Book 8, Hadith 424
  (deprecated numbering scheme)