Sunan an-Nasa'i #3433
The Book of Divorce 27:45
It was narrated from Abu Hurairah that -(one of the narrators) 'Abdur-Rahman said:
"The Messenger of Allah -said: 'Allah, the Most High, has forgiven my Ummah for everything that enters the mind, so long as it is not spoken of or put into action.'"