Chapter: Allah allows a person's thoughts and whatever occurs in his heart so long as they do not become established
It is narrated on the authority of Abu Huraira that the Messenger of Allah ( صلی اللہ علیہ وسلم ) observed: Verily Allah forgave my people the evil promptings which arise within their hearts as long as they did not speak about them or did not act upon them.
Authentic