"Al-Aqsa Masjid" means "the farthest Mosque". The masjids name comes from a story in the Quran called "The Night Journey". In the story Muhammad goes from Makkah to Jerusalem, where the Al-Aqsa Masjid is. Then he went up to Heaven (Jannah).