It is recommended to offer voluntary prayers in one’s house although it is permissible to offer them in the masjid
حَدَّثَنَا مُحَمَّدُ بْنُ الْمُثَنَّى، حَدَّثَنَا يَحْيَى، عَنْ عُبَيْدِ اللَّهِ، قَالَ أَخْبَرَنِي نَافِعٌ، عَنِ ابْنِ، عُمَرَ عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ " اجْعَلُوا مِنْ صَلاَتِكُمْ فِي بُيُوتِكُمْ وَلاَ تَتَّخِذُوهَا قُبُورًا " .
Ibn 'Umar reported Allah's Messenger (ﷺ) as saying: Observe some of your prayers in your houses and do not make them graves.