... it became a mosque ...
... the inner courtyard lined with poor to cause has a mosque in the center ...