When Sultan Mehmet conquered Constantinople at the age of 21 and ended Byzantine Empire in the 1453, he purchased the property of Hagia Sophia from his personal wealth before converting it into a Masjid (Mosque). The details of the transaction are still stored in the Turkish Museum, as can be seen in the photo below.This is the main reason why the court ordered Aya Sofya to be re converted into a Masjid.
Therefore, the credit the really goes to the forward thinking Sultan Mehmet, the conqueror of Constantinople for purchasing the church and then creating a waqf (endowment). Had it not been for his wisdom, Kemal Ataturk’s decision would not have been able to be legally overturned.
Well All Muslims should make a prayer for the Sultan Mehmet when they pray at Aya Sophiya.
Hayırlı olsun. pic.twitter.com/MzP6nzn9Jc
— Recep Tayyip Erdoğan (@RTErdogan) July 10, 2020