Naming mosques after individuals
There is no objection to naming mosques after individuals whether or not they built them or to perpetuate the memory of a scholar, ruler or a reformer if he is deserving of it. Alternatively, a mosque may be named after a person to distinguish it from another mosque such as the mosques of 'Amru ibn al-'As', 'Imam al-Shafi'I' and the like provided the intention for doing so is good. This is due to the words of the Prophet [pbuh] who said: "Deeds are according to intentions." However, it is impermissible to name a mosque after a person if this is done out of dissemblance and arrogance.
Allah the Almighty knows best