later on when persians recovered the city the mosque was rebuilt to become an arsenal