When the Prophet (peace and blessings be upon him) came to Makkah, Sayyiduna Qays bin Sa'd (may Allah be pleased with him) was in front of him, ahead of his contingent, as chief of police. The Prophet (peace and blessings be upon him) was spoken to about Qays, that he should remove him from the place where he had put him, out of fear that he might rush ahead in some matter; so he removed him from it.
Hadith Referenceالمعجم الكبير للطبراني / باب القاف / 15971