The World Federation One Stop Fiqh

Ruling 1177

If a person who doubts excessively doubts whether or not he has performed an act that is not a rukn and dismisses it and later realises that he had not performed it, in the event that the time for performing that act has not passed, he must perform it and what follows it. However, if the time for performing it has passed, his prayer is valid. For example, if he doubts whether or not he has recited Sūrat al-Ḥamd and dismisses his doubt, in the event that he remembers in qunūt that he has not recited Sūrat al-Ḥamd, he must recite Sūrat al-Ḥamd and the other surah; but if he remembers this in rukūʿ, his prayer is valid.