Thinking about talaq
For the divorce to occur, one must utter the words of divorce or talaq verbally.
“The main part (rukn) of divorce is the specific statement.” (Raddul Muhtar p.426 v.4)
With regards to your question thinking about divorce will not execute a divorce.
Only Allah Knows Best
Mohammed Tosir Miah
Darul Ifta Birmingham.