Bismihi ta'āla
Although it is highly recommended to pray in a mosque, especially if you live close to it, but it would be permissible to pray at hom if the person wants to, or for whatever reason.
And Allah knows best
ASK is paused while we upgrade it
We’re working on a new version of Al-Islam.org, and we want ASK to be part of it in a better form. To make sure your questions reach our scholars clearly and get the answers they deserve, we’ve paused new submissions until the new site launches. If you sent a question recently and didn’t hear back, we’re sorry. You’ll be invited to ask again once ASK returns.
Bismihi ta'āla
Although it is highly recommended to pray in a mosque, especially if you live close to it, but it would be permissible to pray at hom if the person wants to, or for whatever reason.
And Allah knows best