The Muslim should pray in congregation in the mosque if he is able to do so.
This has been discussed with the evidence in the answer to question no. 120
If he has an excuse, then there is nothing wrong with him praying before the congregational prayer on his own, then leaving.
One excuse is if he remembers that he has some property that he fears may be stolen, or he has a family member who is sick and he has to stay with him, or he has an appointment and will be adversely affected by not attending it, and other excuses that make it permissible to waive the duty to attend prayer in congregation.
And Allah knows best.
Reproduced from Islam QA