A:
If you moved from the village to a far away place that does not enable you to
hold the position of the Masjid Imam, it is impermissible for you to take a salary while you do not perform the job.May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.