It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that the Messenger of Allah (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 people who reach the number of twelve thousand are not defeated due to a shortage of numbers, provided that they are truthful and patient."
However, Hujayn said (instead of al-Zuhri (may Allah have mercy on him)) "Ibn Shihab", and he did not mention the words "they are patient" at the end of the hadith.