It is narrated from Hazrat Sha'bi (may Allah have mercy on him) that divorce ends ila, but both are like two horses in a race; whichever reaches first will be acted upon, and if both occur together, then both will be considered valid.
Hadith Referenceسنن سعید بن منصور / كتاب الطلاق / 3102
Hadith Takhrij«أخرجه سعيد بن منصور فى «سننه» ترقيم الدرالسلفية برقم:، 1925، وعبد الرزاق فى «مصنفه» برقم: 11696، وابن أبى شيبة فى «مصنفه» برقم: 18940»