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 completes that prayer and then repeats it.