The World Federation One Stop Fiqh

Ruling 1197

If after prayers one realises that while performing the prayer he had a doubt but he does not know whether it was a doubt that invalidates the prayer or not, in such a case, he must perform the prayer again. If he knows that it was one of the valid doubts but does not know which one it was, it is permitted for him to perform the prayer again.