The Prophet ﷺ said: The best number of companions is four, the best number in expeditions four hundred, and the best number in armies four thousand; and twelve thousand will not be overcome through smallness of numbers. Abu Dawud said: What is correct is that this tradition is mursal (i.e. the link of the Companion is missing). (Using translation from Abū Dāʾūd 2611)
قَالَ رَسُولُ اللهِ ﷺ خَيْرُ الصَّحَابَةِ أَرْبَعَةٌ وَخَيْرُ السَّرَايَا أَرْبَعُمِائَةٍ وَخَيْرُ الْجُيُوشِ أَرْبَعَةُ آلافٍ وَلا يُغْلَبُ اثْنَا عَشَرَ أَلْفًا مِنْ قِلَّةٍ