The Farthest Mosque, refers to the site of the Temple of Solomon in Jerusalem on the hill of Moriah, at or near which stands the Dome of the Rock and Masjid al-Aqsa. They were completed by the Amir 'Abd al-Malik in A.H. 68.
In the time of the Prophet, it was a sacred place to both Jews and Christians, the latter had included in the Byzantine (Roman) Empire and maintained a Patriarch at Jerusalem which was later conquered by Caliph Omar.
1. Glory to (Allah) who did take His servant to a journey by night from the Sacred Mosque to the Farthest Mosque, whose precincts We did bless, - in order that We might show him some of Our signs: for He is the One who hears and sees. Surah 17: Bani Isra'il or A-Isra'.