وَإِذَا صَلَّى الْمُسَافِرُ بِالْمُقِيمِينَ: صَلَّى رَكْعَتَيْنِ وَسَلَّمَ، ثُمَّ أَتَمَّ الْمُقِيمُونَ صَلَاتَهُمْ. وَيُسْتَحَبُّ لَهُ إِذَا سَلَّمَ أَنْ يَقُولَ لَهُمْ: أَتِمُّوا صَلَاتَكُمْ فَإِنَّا قَوْمٌ سَفْرٌ.
Translation: When a traveller leads residents, he prays two rak‘ahs and gives salam, after which residents complete their prayer. It is recommended that he tell them, “Complete your prayer, for we are travellers.”
The imam’s two-rak‘ah fard finishes, while the residents still have their remaining two rak‘ahs to perform.