Building Masjids in places where Muslims are not expected to permanently reside

Q 1: Is it permissible to build a Masjid (mosque) or convert a building into a Masjid in an area or town which is expected to be abandoned in the future? In America, Muslims build a Masjid in a certain area to offer Salah (Prayer) in it. They return home after graduation and the Masjid becomes totally abandoned.

A: It is permissible to do this as it serves the public interest of Muslims, helps them practice the rites of Islam, and may lead other non-Muslims living in these areas to embrace Islam.May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.