“I asked the Messenger of Allah (ﷺ):
‘Which is better prayer in my house or prayer in the mosque?’ He
said:
‘Do you not see how close my house is to the mosque?’ But
praying in
my house is dearer to me than praying in the mosque, apart
from the
prescribed prayers.’”
Sunan Ibn Majah Book 5, Hadith 576