Hadith 2262
حَدَّثَنَا مُحَمَّدُ بْنُ الْمُثَنَّى، حَدَّثَنَا خَالِدُ بْنُ الْحَارِثِ، حَدَّثَنَا حُمَيْدٌ الطَّوِيلُ، عَنِ الْحَسَنِ، عَنْ أَبِي بَكْرَةَ، قَالَ : عَصَمَنِي اللَّهُ بِشَيْءٍ سَمِعْتُهُ مِنْ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ ، لَمَّا هَلَكَ كِسْرَى قَالَ : مَنِ اسْتَخْلَفُوا ؟ قَالُوا : ابْنَتَهُ ، فَقَالَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ : " لَنْ يُفْلِحَ قَوْمٌ وَلَّوْا أَمْرَهُمُ امْرَأَةً " ، قَالَ : فَلَمَّا قَدِمَتْ عَائِشَةُ ، يَعْنِي الْبَصْرَةَ ، ذَكَرْتُ قَوْلَ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَعَصَمَنِي اللَّهُ بِهِ ، قَالَ أَبُو عِيسَى : هَذَا حَدِيثٌ حَسَنٌ صَحِيحٌ .
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
Hadith Grading الألبانی: صحيح، الإرواء (2456)
Hadith Takhrij «صحیح البخاری/المغازي 82 (4425) ، والتفن 18 (7099) ، سنن النسائی/آداب القضاة 8 (5390) ( تحفة الأشراف : 11660) ، و مسند احمد (5/38، 378) (صحیح)»