He said that some of the companions of God’s messenger came to the Prophet to consult him saying, “We have thoughts which none of us dare to talk about.” He said, “Have you experienced that?” and when they replied that they had, he said, “That is clear faith.”
Abu Huraira reported God’s messenger as saying, “God forgives my people the evil promptings which arise within them so long as they do not act upon them or speak about them.”
He also reported God’s messenger as saying, “The devil comes to one of you saying, ‘Who created this? Who created that?’ even saying, ‘Who created your Lord?’ "When he gets that length the man should seek refuge in God and stop thinking about it.”