(11) باب الطَّلاَقِ فِي الإِغْلاَقِ
Narrated Abu Huraira:
The Prophet (ﷺ) 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.:
Reference: Sahih al-Bukhari 5269
In-book reference: Book 68, Hadith 19
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 7, Book 63, Hadith 194