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 was the one who named the mosque Ayasofya Camil .