text: His first act was to ride to Haghia Sophia and order that it be converted into a mosque ; on the following Friday , he attended the first Muslim prayers in what came to be called Ayasofya Camii ( Mosque of Haghia Sophia ) .
  
  ###
  
  He prayed in Ayasofya Camil ( Mosque of Haghia Sophia ) for the first time on a Thursday .