Using the surplus of funds allocated to build a certain Masjid for the construction of another

A: It is permissible for you to spend the sum of money that is left from constructing the first Masjid in another one, if the first does not need it .May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.