The Messenger of Allah ﷺ said, "Offer some of your prayers in your homes, and do not turn them into graves."
حدثنا مسدد حدثنا يحيى عن عبيد الله أخبرنا نافع
قال رسول الله ﷺ اجعلوا في بيوتكم من صلاتكم ولا تتخذوها قبورا
Bukhari narrated it, Prayer, chapter on the disapproval of praying in graveyards, no. 432, from the hadith of Musaddad, and Muslim, Travelers' Prayer, chapter on the recommendation of praying voluntary prayers in one's house etc., no. 777, from Qattan, through him.