Sunnah.com : Book 3, Hadith 60
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
وَحَدَّثَنِي عَنْ مَالِكٍ، أَنَّهُ سَأَلَ ابْنَ شِهَابٍ وَنَافِعًا مَوْلَى ابْنِ عُمَرَ عَنْ رَجُلٍ، دَخَلَ مَعَ الإِمَامِ فِي الصَّلاَةِ وَقَدْ سَبَقَهُ الإِمَامُ بِرَكْعَةٍ أَيَتَشَهَّدُ مَعَهُ فِي الرَّكْعَتَيْنِ وَالأَرْبَعِ وَإِنْ كَانَ ذَلِكَ لَهُ وِتْرًا فَقَالاَ لِيَتَشَهَّدْ مَعَهُ . قَالَ مَالِكٌ وَهُوَ الأَمْرُ عِنْدَنَا .
Yahya related to me from Malik that he asked Ibn Shihab and Nafi, the mawla of Ibn Umar, whether a man who joined an imam who had already done a raka should say the tashahhud with the imam in the second and fourth rakas, even though these were odd for him? They said, "He should say tashahhud with him." Malik said, "That is the position with us."
Full reference and source
Sunnah.com : Book 3, Hadith 60 USC-MSA web (English) : Book 3, Hadith 60 Arabic : Book 3, Hadith 207
View source on Sunnah.com (opens in a new tab)