All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Muhammad is His slave and Messenger.
We do not see any inconvenience or harm in visiting the Al-Aqsa mosque in the current days and under current circumstances. The Prophet envisaged and wanted to make ‘Umrah with his companions when they were in Al-Hudaybiyah although Makkah was under the rule of polytheists and enemies of Muslims at that time, and the Prophet was compelled to make a treaty with them for that purpose. That treaty is known as Al-Hudaybiyah Treaty. As a result to this treaty, the Prophet made ‘Umrah accompanied by his companions.
The Prophet did not make his recognizing the rule of Makkah by Quraysh a hindrance to his performing the ‘Umrah. He not only recognized their rule but also signed a treaty with them.
In fact, the issue of recognition is defined by the reality on the land and cannot be denied by just making speeches and statements. No doubt the Jews have occupied Palestine by force, and it is now under their rule. Muslims are asked to fight them and expel them from Palestine. But if the Muslims are in dire need to make a temporary peace agreement with the Jews, it is lawful for them to do so as the Prophet did with the Jews of Medeenah when he arrived to it.
We believe that visiting the Al-Aqsa mosque helps Muslims know the hardships encountered by their brothers in Palestine, and this will motivate them to do their best to help these oppressed and colonized brothers.
Finally, we did not find any evidence forbidding visiting the Al-Aqsa mosque even while it is under the Israeli occupation.
Allah knows best.