Allah's Messenger (ﷺ) gave us the option (to remain with him or to be divorced) and we selected Allah and His Apostle . So, giving us that option was not regarded as divorce.
Sahih al-Bukhari Book 68, Hadith 12