Sayyiduna al-Nu'man bin Bashir (may Allah be pleased with him) narrates: I heard the Prophet (peace and blessings be upon him) saying: "Remain upright towards Quraysh as long as they remain upright towards you. If they do not remain upright towards you, place your swords upon your shoulders and destroy their great ones (that is, their rulers)."
This narration has been recorded by Imam al-Tabarani, and its chain contains a narrator whom I do not know.
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الخلافة / 9158