Hadithcore
Riyad as-Salihin, 961

Ibn 'Abbas (May Allah be pleased with them) reported:

The Prophet (ﷺ) said, "The best number of companions is four; the best detachment is four hundred and the best army is four thousand; and twelve thousand men will not be defeated as a result of smallness of number." <b>[At-Tirmidhi and Abu Dawud]</b>.

وعن ابن عباس رضي الله عنهما عن النبي صلى الله عليه وسلم قال‏:‏ “خير الصحابة أربعة وخير السرايا أربعمائة وخير الجيوش أربعة آلاف ولن يغلب اثنا عشر ألفاً عن قلة‏"‏ ‏(‏‏(‏رواه أبو داود والترمذي وقال‏:‏ حديث حسن‏)‏‏)‏

References1 variant
In-Book Reference
Book 7, Hadith 6
Sharh · explanationclick to expand
<b>Guidance from the Hadith:</b><br> 1) The best companions are those who cooperate in serving their collective interests while they are travelers or non-travelers.<br> 2) Great numbers are not the basis for victory. Rather, what matters is sincerity of faith and patience.<br> Note:<br> Some scholars of Hadith classified this Hadith as weak in Isnād. It also contradicts the apparent indication of the verse that says: {So if there are from you one hundred [who are] steadfast, they will overcome two hundred. And if there are among you a thousand, they will overcome two thousand by permission of Allah. And Allah is with the steadfast.} In his Tafsir, Ibn Kathir said: “If they are half the number of their enemy, they may not flee from them. But if they are less than that, it is not incumbent upon them to fight them and they may turn away.” End quote.<br> The apparent indication of the above Hadith is that it is not permissible for them to turn away if they number 12 thousand, regardless of the number of their enemy. This contradicts the apparent meaning of the verse.<br> Also, the weakness of the meaning of the Hadith is confirmed by what was reported by Ibn ‘Abbās – the reporter of the above Hadith – that: “He who flees from two has fled (from battle), and he who flees from three has not fled.” [Narrated by Al-Tabarāni in Al-Mu‘jam al-Kabir]<br> <br> <br> <br> <b>Words in the Hadith:</b><br> Detachment: an army unit.