Question
If a person is offering prayer and another person comes and stands next to him, but a bad smell is coming from the newcomer which is unpleasant for the person who was already engaged in prayer, may that person break his prayer and go and stand in another row?
Answer
الحمد لله، والصلاة والسلام علىٰ رسول الله، أما بعد!
No, doing this is not correct. Breaking the prayer is not permissible.
After the prayer is completed, the better way is to advise that person with gentleness, kindness and good manners, so that in future he is careful and does not come to the mosque or the prayer in a condition that causes discomfort to others.
ھذا ما عندي والله أعلم بالصواب