What Is the Significance of Jerusalem and Al-Aqsa Mosque?

What is the significance of Jerusalem and Al-Aqsa Mosque? Why did Allah choose Al-Aqsa Mosque as the Qiblah before the Ka`bah?