The Masjid al-Qiblatayn, also spelt Masjid al-Qiblatain, is a mosque in Medina believed by Muslims to be the place where the final Islamic prophet, Muhammad, received the command to change the Qibla from Jerusalem to Mecca. The mosque was built by Sawad ibn Ghanam ibn Ka'ab during the year 2 AH and is one of the few mosques in the world to have contained two mihrabs in different directions.
In 1987, during the reign of King Fahd, the mosque was completely torn down and rebuilt. In the course of the reconstruction, the old prayer niche facing Jerusalem was removed, and the one facing Mecca was left. The Qiblatayn Mosque is among the earliest mosques that date to the time of Muhammad, along with the Quba'a Mosque and Masjid an-Nabawi, considering that the Great Mosques of Mecca and Jerusalem are associated with earlier Prophets in Islamic thought.
Wikipedia https://en.wikipedia.org/wiki/Masjid_al-Qiblatayn
Address 4993 Khalid Bin Al Waleed Road, Al Madinah Al Munawwarah 42351, Saudi Arabia
Coordinates 24°29'2.984" N 39°34'43.809" E