the Messenger of Allah (ﷺ) said: "Allah has forgiven my nation for what they think of to themselves, so long as they do not act upon it or speak of it."
Sunan Ibn Majah Book 10, Hadith 25