It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that Sayyiduna Ali bin Abi Talib (may Allah be pleased with him) was the standard-bearer of the Messenger of Allah (peace and blessings be upon him) on the day of Badr, and in all the campaigns it was Ali (may Allah be pleased with him) who remained the standard-bearer of the Muhajirun, and Qays bin Sa'd bin Ubadah (may Allah be pleased with him) was the standard-bearer of Ali (may Allah be pleased with him).
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 12049