"I will witness, God willing, this beautiful moment by leading the first tarawih prayer," he added.
The prayers will take place at Hagia Sophia on Fridays, Saturdays and Sundays during the holy month of Ramadan, beginning this week, Diyanet said in a statement.
Although the iconic building, previously used as a museum, was turned into a mosque in 2020, the Coronavirus pandemic prevented the prayers from taking place there until now.
It's not the first time the building has changed its use.
The edifice was first built as a Christian cathedral between 532 and 537 AD under emperor Justinian I and is considered the most important Byzantine structure.