Prophet Muhammad is said to have traveled to Al-Aqsa mosque in Palestine on his nocturnal journey to heavens. How is it possible since the mosque itself was built later during the Caliphates?

by [deleted]
Evan_Th

Followup question: When was the story of Mohammed's journey to heaven first recorded, and when was the mosque specifically named in it?