A person might have started a four-rak’ah voluntary prayer when the congregational obligatory prayer is called. Is it permissible for him to shorten his prayer to two rak’ahs in order to join the congregation?
If such a person is still in the early stages of his four-rak’ah voluntary prayer, or indeed in any part of the first two rak’ahs, he should shorten his prayer to two rak’ahs only and join the congregation. Islam lays much emphasis on the unity of the Muslim community, and such unity is best apparent in their congregational prayer, when the congregation might be in millions, but led by one imam. All stand in equal ranks, regardless of their positions or social status.
To be in the mosque, praying individually, when the congregation has started detracts from that unity, although those individuals are engaged in worship. Nevertheless, Islam prefers that they should join the congregation as soon as possible. Therefore, once the call for the congregational prayer starts, anyone praying a voluntary prayer should finish it quickly and join the congregation. If this means shortening his prayer, then he should do so.