We prayed with the Prophet (ﷺ) and used to finish our prayer with the Taslim along with him.

Sahih al-Bukhari Book 10, Hadith 231