If people need to leave the Masjid (mosque) while other people are offering Salah, there is no harm in exiting from the middle of the row which blocks the way if there is no other path. If a person finds a path to the right or the left, he should exit from there in order not to disturb those who are offering Salah. (Part No. 6; Page No. 240) May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.