Hadith.1071 - Sama’a ibn Mehran asked him about a man who is performing the obligatory prayer while standing and forgets his bag or belongings, fearing they might be lost or damaged.
Imam (as) said: "He may cut his prayer and secure his belongings."
Sama’a then said: "What if his animal breaks loose and he fears it might run away or cause harm?"
Imam (as) said: "It is no problem for him to cut his prayer, secure his animal, and then return to his prayer."