Sunan Ibn Majah, Book 37, Hadith 4425 (In-Book) ⓘ
It was narrated from Abu Sa’eed that the Messenger of Allah said: “A Prophet will come accompanied by two men, and a Prophet will come accompanied by three, and (some will come) with more or less than that. It will be said to him: ‘Did you convey the message to your people?’ And he will say: ‘Yes.’ Then his people will be called and it will be said: ‘Did he convey the message to you?’ They will say: ‘No.’ Then it will be said: ‘Who will bear witness for you?’ He will say: ‘Muhammad and his nation.’ So the nation of Muhammad will be called and it will be said: ‘Did this man convey the message?’ They will say: ‘Yes.’ He will say: ‘How did you know that?’ They will say: ‘Our Prophet told us that the Messengers had conveyed the message, and we believed him.’ This is what Allah says: “Thus We have made you, a just (and the best) nation, that you be witnesses over mankind and the Messenger (Muhammad) be a witness over you.’” [2:143]
حَدَّثَنَا أَبُو كُرَيْبٍ، وَأَحْمَدُ بْنُ سِنَانٍ، قَالاَ حَدَّثَنَا أَبُو مُعَاوِيَةَ، عَنِ الأَعْمَشِ، عَنْ أَبِي صَالِحٍ، عَنْ أَبِي سَعِيدٍ، قَالَ قَالَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ " يَجِيءُ النَّبِيُّ يَوْمَ الْقِيَامَةِ وَمَعَهُ الرَّجُلُ وَيَجِيءُ النَّبِيُّ وَمَعَهُ الرَّجُلاَنِ وَيَجِيءُ النَّبِيُّ وَمَعَهُ الثَّلاَثَةُ وَأَكْثَرُ مِنْ ذَلِكَ وَأَقَلُّ فَيُقَالُ لَهُ هَلْ بَلَّغْتَ قَوْمَكَ فَيَقُولُ نَعَمْ . فَيُدْعَى قَوْمُهُ فَيُقَالُ هَلَ بَلَّغَكُمْ فَيَقُولُونَ لاَ . فَيُقَالُ مَنْ شَهِدَ لَكَ فَيَقُولُ مُحَمَّدٌ وَأُمَّتُهُ . فَتُدْعَى أُمَّةُ مُحَمَّدٍ فَيُقَالُ هَلْ بَلَّغَ هَذَا فَيَقُولُونَ نَعَمْ . فَيَقُولُ وَمَا عِلْمُكُمْ بِذَلِكَ فَيَقُولُونَ أَخْبَرَنَا نَبِيُّنَا بِذَلِكَ أَنَّ الرُّسُلَ قَدْ بَلَّغُوا فَصَدَّقْنَاهُ . قَالَ فَذَلِكُمْ قَوْلُهُ تَعَالَى {وَكَذَلِكَ جَعَلْنَاكُمْ أُمَّةً وَسَطًا لِتَكُونُوا شُهَدَاءَ عَلَى النَّاسِ وَيَكُونَ الرَّسُولُ عَلَيْكُمْ شَهِيدًا} .
also referenced under: Hadith 4284 (Reference) & Volume 5, Book 37, Hadith 4284 (DarusSalam)