Praying individually at home though neighboring the Masjid
A:
If the reality is what you have mentioned, your Salah at home (Part No. 7; Page No. 292) will not be permissible due to forsaking the obligatory congregational Salah observed in the Masjid. However, your Salah will count because, though the congregational Salah in the Masjid is obligatory, it is not a prerequisite for the validity of the Salah according to the sound opinion of the Muslim scholars. You should ask for Allah's Forgiveness for this negligence. Allah (Glorified be He) says,
And all of you beg Allâh to forgive you all, O believers, that you may be successful
May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.