It is narrated from Sayyiduna Abdullah bin 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 expeditionary force (sariyyah) is four hundred, the best army is four thousand, and an army of twelve thousand will never be overcome due to a shortage of numbers."
Imam Ahmad (may Allah have mercy on him) also narrated this hadith through Yunus from Hibban bin Ali.
And Imam Abu Dawud (may Allah have mercy on him) narrated it from Abu Khaythamah Zuhayr bin Harb.
And Imam al-Tirmidhi (may Allah have mercy on him) narrated it from Muhammad bin Yahya al-Azdi al-Basri, Abu Ammar and several other teachers, from Wahb bin Jarir, and said: "This hadith is hasan gharib; very few people narrate it musnad (with a connected chain)."
And Abu Hatim Ibn Hibban (may Allah have mercy on him) narrated it through Abu Ya'la al-Mawsili from Zuhayr bin Harb.
We have recorded the narration of Hibban bin Ali by way of i'tibar (as corroborating and supporting narrations).
Related hadith on this topic