Peace be upon you. We advise you to first review
Question 1855, where you will find detailed guidance on how to deal with intrusive thoughts and how to handle this situation. It is important to note that sacred law does not consider a person accountable unless they have a choice. Therefore, if certain thoughts arise in your mind— even if they are blasphemous, such as insulting the sacred—if they are intrusive,
there is no sin in this case, as such thoughts are beyond the individual's control. May you be successful in all good things.