The Messenger of Allah ﷺ gave us the choice, and we chose him, and that was not counted as a divorce.
حدثنا هشيم قال أخبرنا مغيرة عن إبراهيم
قد خيرنا رسول الله ﷺ فاخترناه فلم يعد ذلك طلاقا
Its isnad is sahih, previously mentioned at 24534.