حَدَّثَنَا زُهَيْرٌ ، حَدَّثَنَا وَهْبُ بْنُ جَرِيرٍ ، حَدَّثَنَا أَبِي قَالَ : سَمِعْتُ يُونُسَ بْنَ يَزِيدَ الْأَيْلِيَّ يُحَدِّثُ عَنِ الزُّهْرِيِّ ، عَنْ عُبَيْدِ اللهِ بْنِ عَبْدِ اللهِ ، عَنِ ابْنِ عَبَّاسٍ ، عَنِ النَّبِيِّ - صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ - قَالَ : خَيْرُ الصَّحَابَةِ أَرْبَعَةٌ ، وَخَيْرُ السَّرَايَا أَرْبَعُ مِائَةٍ ، وَخَيْرُ الْجُيُوشِ أَرْبَعَةُ آلَافٍ ، وَلَنْ يُغْلَبَ اثْنَا عَشَرَ أَلْفًا مِنْ قِلَّةٍ .
It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) said: "The best number of companions is four, the best detachment is of four hundred soldiers, the best army is of four thousand, and a body of twelve thousand will never be defeated because of (merely) small numbers."
Related hadith on this topic