فالوجه في هذا الخبر أن قوله( ثم صلى) المراد به دخل في الصلاة ولا يكون قد فرغ منها فانه لا يجب عليه الانصراف بل ينبغي أن يمضي في صلاته ولو كان قد فرغ من صلاته والوقت باق كان عليه الاعادة على ما قدمناه
The interpretation of this narration is that the phrase "then prays" refers to him having entered the prayer but not yet completed it. In such a case, he is not required to interrupt the prayer; rather, he should continue with it. However, if he had already completed the prayer and the time for the prayer was still remaining, he would be obligated to repeat it, as mentioned earlier.