Allah's Messenger (ﷺ) gave us the option (to get divorce) but we did not deem it as divorce.

Sahih Muslim Book 18, Hadith 33