All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad is His slave and Messenger. We ask Allaah to exalt his mention as well as that of his family and all his companions.
First of all we advise you, dear brother, to turn to Allaah, to supplicate to him as much as possible and seek refuge in Him so that He would repel from you the whispers that spring to your mind. Allaah says (interpretation of the meaning): {And if an evil whisper comes to you from Shaytan (Satan) then seek refuge with Allaah. Verily, He is All-Hearer, All-Knower.}[7:200]. In order to repel these whispers, you have also to help yourself with the means that strengthens the faith, like reading the Qur'aan and pondering upon the verses addressing creed and faith. You have to be in the company of pious people of knowledge and befriend righteous youth, and attend circles of knowledge and try to get closer to Allaah by performing good deeds.
You have to know as well that your hate for these whispers is an evidence of your strong and true Eemaan, Insha Allaah. Abu Hurayrah narrated: "Some companions of the Prophet, Sallallaahu Alayhi wa Sallam, came to him and asked him: ''We find in our own self (desires) what one of us considers as a great and serious matter to talk about”. The Prophet said: “Do you really find that”. They replied: “Yes”. The Prophet then said: “That is the true Eemaan (faith).” [Muslim] That is to say that hating what they wanted to talk about, reflects true Eemaan.
This means that if what comes to one’s mind and the whispers of one’s desires are considered by the person as a great sin and a serious matter to talk about, this is a sign of a complete faith. Had he not had Eemaan, one would not hate it nor consider it as a serious and great matter. All you have to do is to continuously fulfill the orders of Allaah and refrain from His prohibitions. In addition to this, you have to neglect these whispers and do not give attention to these desires; by doing so, you will be fine, Insha Allaah.
Allaah knows best.