حَدَّثَنَا هَاشِمُ بْنُ الْقَاسِمِ  ، حَدَّثَنَا شُعْبَةُ  ، عَنْ عَمْرِو بْنِ دِينَارٍ  ، قَالَ : سَمِعْتُ جَابِرَ بْنَ عَبْدِ اللَّهِ   يُحَدِّثُ، عَنْ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ، قَالَ :" إِذَا جَاءَ أَحَدُكُمْ وَالْإِمَامُ يَخْطُبُ أَوْ قَدْ خَرَجَ، فَلْيُصَلِّ رَكْعَتَيْنِ "
Hashim bin Al-Qasim told us, Shu’bah told us, on the authority of Amr bin Dinar, he said: I heard Jabir bin Abdullah speaking, on the authority of the Prophet, may God bless him and grant him peace. He, peace and blessings be upon him, said: “If one of you comes while the imam is delivering the sermon or has left, let him pray two rak’ahs.”