The Book of Occultation — al-Ṭūsī · Hadith 771 (#Ḥadīth #20)
Chapter 52 | Some Qualities, practices and manners of the Master of the Age
502- عنه، عن أحمد بن عمر بن مسلم، عن الحسن بن عقبة بن النهمي، عن أبي إسحاق البناء، عن جابر الجعفي قال: قال أبوجعفر عليه السلام: يبايع القائم بين الركن والمقام ثلاثمائة ونيف عدة أهل بدر، فيهم النجباء من أهل مصر، والأبدال من أهل الشام، والأخيار من أهل العراق، فيقيم ما شاء الله أن يقيم.
H 502 - It is narrated from Fadhl from Ahmad bin Umar bin Muslim from Hasan bin Uqbah Nahmi from Abu Ishaq Banna from Jabir Jofi from Imam Muhammad Baqir that he said about the Qaim: “The allegiance of Imam Qaim will be given between Rukn and Maqam by three hundred and thirteen persons equal to the fighters of the Battle of Badr. Some nobles of Egypt, leaders of Syria and good persons from Iraq will also be included among them and they will set out from there when the Almighty Allah wants.”
Gradings are classical jarḥ-wa-taʿdīl, name-matched to a rijāl index (not individually re-verified).