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.