Bismillah Walhamdulillah Was Salaatu Was Salaam ‘ala Rasulillah
Narrated Abu Huraira (Radi-Allahu ‘anhu):
The Prophet (Sallallahu ‘Alaihi Wa Sallam) said, “Allah has forgiven my followers the evil thoughts that occur to their minds, as long as such thoughts are not put into action or uttered.” And Qatada said, “If someone divorces his wife just in his mind, such an unuttered divorce has no effect.”
Bukhari Vol. 7 : No. 194