Masjid al-Jinn is historically significant as it is believed to be the place where a group of jinn listened to the Prophet Muhammad recite the Quran, leading to their conversion to Islam.