Following the total occupation of Egypt by the Arabs he sought refuge in Constantinople .