The Book of Divorce
27/22. Chapter:
The One Who Utters A Divorce To Himself (Without Uttering The Words Loudly)
Sunan an-Nasai
أَخْبَرَنِي مُوسَى بْنُ عَبْدِ الرَّحْمَنِ، قَالَ حَدَّثَنَا حُسَيْنٌ الْجُعْفِيُّ، عَنْ زَائِدَةَ، عَنْ شَيْبَانَ، عَنْ قَتَادَةَ، عَنْ زُرَارَةَ بْنِ أَوْفَى، عَنْ أَبِي هُرَيْرَةَ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ " إِنَّ اللَّهَ تَعَالَى تَجَاوَزَ لأُمَّتِي عَمَّا حَدَّثَتْ بِهِ أَنْفُسَهَا مَا لَمْ تَكَلَّمْ أَوْ تَعْمَلْ بِهِ " .
It was narrated from Abu Hurairah that the Prophet said: "Allah, the Most High, has forgiven my Ummah for whatever enters the mind, so long as it is not spoken of or put into action."
Reference : Sunan an-Nasa'i 3435In-book reference : Book 27, Hadith 47English translation : Vol. 4, Book 27, Hadith 3465