The Prophet said when a person has waswas — obsessive intrusive thoughts — they should seek refuge in Allah and stop following the thought. This dua cuts the cycle of obsessive thinking by redirecting to Allah.