The World Federation One Stop Fiqh

Ruling 1139

If during prayers one does something or remains silent for a while and doubts whether or not his prayer has broken up, he must perform the prayer again. However, it is better that he first complete that prayer and then repeat it.