Please, can you quote if this had happen once in history with justification of Sunnah and Muslim scholars?
I'm sure, you are not referring Abbasi caliph, who apparently took a neutral position when Changez Khan was attacking on muslims of Khwarezmia.