Doubt, like any other emotion, is a natural and common emotion that people experience on their path to spiritual growth. Experiencing doubts can feel challenging and disconcerting, but for one afflicted with doubt in his faith, this can be an opportunity to turn towards prayer and seek guidance. In the journey of renewing one's faith and finding a true connection with one's Creator, there will be obstacles, but to persevere through these obstacles is what bridges the gap between doubt and a strong faith. The Prophet Muhammad (ﷺ) suggested and practiced the dua given below for one afflicted with doubt in his faith.
According to the sunnah of the Prophet Muhammad (ﷺ), one afflicted with doubt in his faith should recite this supplication three times and then renounce what is causing that doubt [Hisn al-Muslim 141]. There is no specific time to recite this supplication, and they may recite it as many times as they can. However, one should pray with humility and seek refuge from the evil. To persevere despite the doubts is what the test of faith is. One should not give in to their doubts and remain steadfast in the way of Allah (سُبْحَانَهُ وَتَعَالَى) and try their best to be righteous in their acts rather than not avoiding sin.
Joy & Distress Duas
'A 'oothu billaahi minash-Shaytaanir-rajeem.
I seek refuge in Allah from satan the outcast (then you should desist from doing what you are in doubt about).
'Aamantu billaahi wa Rusulihi.
I believe in Allah and His Messenger.
Huwal-'Awwalu wal-'Aakhiru wadh-Dhaahiru wal-Baatinu, wa Huwa bikulli shay'in 'Aleem.
He is the First and the Last, the Most High and the Most Near. And He is the Knower of all things
The benefits of the supplication when in doubt are manifold. Firstly, Allah accepts the prayers of His people when they reach out to Him with full sincerity and purity of intention. Secondly, seeking help from Allah (سُبْحَانَهُ وَتَعَالَى) can help one find solace when they feel tested in their faith. Moreover, this supplication will strengthen a believer's faith and help them withstand any doubt and persevere in the way of Allah (سُبْحَانَهُ وَتَعَالَى). Invocation for one afflicted with doubt in his faith can help one sustain oneself with this faith that if they do not give in to the doubts, there are greater rewards. The doubt may be a test, and if they pass through this without giving in to the whisperings, Allah (سُبْحَانَهُ وَتَعَالَى) will surely bless and reward them.