The Messenger of Allah ﷺ gave us the choice, and we chose him, and it was not counted as a divorce.
أخبرنا عمرو بن علي قال حدثنا عبد الرحمن عن سفيان عن إسمعيل عن الشعبي عن مسروق
خيرنا رسول الله ﷺ فاخترناه فلم يكن طلاقا
Muslim narrated it, no. 27/1477, from the hadith of Abdul-Rahman bin Mahdi, and Bukhari, no. 5263 (see the previous hadith), from the hadith of Ismail bin Abu Khalid with the same wording, and it is in Kubra, no. 5310.