Allah's Messenger (ﷺ) gave us the option (to get divorce) and we chose him and he did not count it a divorce.
Sahih Muslim Book 18, Hadith 36