The first Tashahhud

Ruling regarding Tashahhud when joining the Imam during the last Rak`ah of the Maghrib Prayer