A:
It is Wajib (obligatory) on Muslim males to perform Salah at the Masjid. You must always perform Fard (obligatory, based on a definitive text) Salah at the Masjid with other Muslims. The distance you mentioned in the question does not entitle you to a Rukhsah (concession) to perform Salah at home with your family members.May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.