TABARANI 6711:
from Jābir —
[Machine] Salik Al-Ghatafani came while the Prophet ﷺ was delivering a sermon, so the Prophet ﷺ ordered him to pray two units of prayer in which he would perform acts of tashahhud. He said, "When any of you comes while the imam is delivering the sermon, let him pray two units of prayer in which he would perform acts of tashahhud."
الطبراني ٦٧١١:
عن جابر —
جَاءَ سُلَيْكٌ الْغَطَفَانِيُّ وَالنَّبِيُّ ﷺ يَخْطُبُ فَأَمَرَهُ النَّبِيُّ ﷺ أَنْ يُصَلِّيَ رَكْعَتَيْنِ يَتَجَوَّزُ فِيهِمَا وَقَالَ «إِذَا جَاءَ أَحَدُكُمْ وَالْإِمَامُ يَخْطُبُ فَلْيُصَلِّ رَكْعَتَيْنِ يَتَجَوَّزُ فِيهِمَا»
hadithunlocked.com