Abu Bakrah (may Allah be pleased with him) said: Allah Almighty saved me from something which I had heard from the Messenger of Allah (peace and blessings be upon him). When Kisra was destroyed, the Prophet asked: "Whom have they appointed as their ruler?" The companions replied: "His daughter." The Prophet (peace and blessings be upon him) said: "A people who appoint a woman as their ruler will never succeed." When Aisha (may Allah be pleased with her) came, that is, towards Basra, I remembered this hadith of the Messenger of Allah (peace and blessings be upon him), so Allah Almighty saved me from it.
Imam Tirmidhi says: This hadith is Hasan Sahih.
Hadith Referenceسنن ترمذي / كتاب الفتن عن رسول الله صلى الله عليه وسلم / 2262