The one who is tested with waswaas about tahaarah (state of purity) or anything else should pay no attention to it; he should remain certain that his tahaarah is still valid and should not change his mind concerning that because of mere doubt.
It was narrated that Abdullah ibn Zayd (may Allah be pleased with him) said: A man complained to the Prophet (blessings and peace of Allah be upon him) that he felt something whilst praying -- should he stop his prayer? He said: No, not unless you hear a sound or notice a smell.
Narrated by al-Bukhaari, 2056; Muslim, 361
Shaykh Ibn Uthaymeen (may Allah have mercy on him) said:
This hadeeth in which the Messenger of Allah (blessings and peace of Allah be upon him) issued a ruling is regarded as an important shari principle, which is that certainty cannot be dispelled by doubt, and things remain as they are. So long as the tahaarah (state of purity) is certain, then it cannot be changed by mere doubt. So long as the state of purity remains valid then it is to be regarded as valid until it is proven that it has been invalidated. This hadeeth offers ease and reassurance to the individual, as it keeps him far away from waswaas and doubts, because by means of this hadeeth doubt is dispelled and what he is certain about remains, namely tahaarah. End quote.
Fataawa Noor ala ad-Darb, 56/119
Shaykh Ibn Baaz (may Allah have mercy on him) said:
The believer should not pay any attention to this waswaas, because that encourages the Shaytaan to mess about with him. The Shaytaan is keen to spoil the good deeds of the sons of Adam, prayer and other things. So what is required is to beware of his tricks and whispers, and to put your trust in Allah and regard what may happen to one of whispers as being from the Shaytaan, so that you will not pay any attention to them. If something comes out for certain, without any doubt, then istinja' (cleaning oneself after relieving oneself) and wudoo' should be repeated. But so long as there is any doubt, even if it is small, then you should not pay any attention to it so as to regard the tahaarah as still valid and combat the Shaytaan. End quote.
Majmoo Fataawa Ibn Baaz, 10/123
With regard to the words of Ibn al-Mubaarak, Abu Eesa at-Tirmidhi (may Allah have mercy on him) said in his Jaami (1/127):
Abdullah ibn al-Mubaarak said: If a person is uncertain as to whether he has broken his wudoo', then he does not have to do wudoo' until he is so certain of it that he could swear to it. End quote.
This is an explanation of what is stated above, which is that no attention should be paid to doubts no matter how strong they are, until one is certain of that.
And Allah knows best.
Reproduced from Islam QA