All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad, sallallaahu ‘alayhi wa sallam, is His Slave and Messenger.
Mere thoughts are overlooked under Sharee‘ah unless one verbally expresses them. Abu Hurayrah narrated that the Prophet said: “Allaah Overlooks one's thoughts unless he utters [them] or puts [them] into practice.” [Al-Bukhari and Muslim]
Al-Bukhari quoted Qataadah, as saying that inward divorce is nothing.
But if one verbally expresses divorcing his wife, resolving to do so and not giving a mere promise of divorce, then his wife is divorced once she does what he made divorce conditional on. In this case, it is not conditioned that he addresses his wife, or any other person, concerning the divorce.
Allaah Knows best.