Sayyiduna Abu Hurayrah (may Allah be pleased with him) said that the Messenger of Allah (peace and blessings be upon him) said: "Whoever becomes the commander of ten men will be brought on the Day of Resurrection with his hands tied to his neck."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب آداب القاضي / 20214