 Complete the following phrase:  Ismail, with the support of the Ayyubids of Kerak, Hama and Homs, captured Damascus from Ayyub in September 1239. Ayyub was abandoned by his troops and taken captive by local Bedouin who transferred him to an-Nasir Dawuds control. This ushered in an era of future rivalry between Ismail and Ayyub. Ayyub eventually ascended to rule the Egypt-based sultanate with Dawuds help, but he soon quarreled with him. Dawud and Ismail had reconciled and decided to establish an alliance with the Crusaders to prevent Ayyub from conquering their territories. In July 1240 during the 