During the days (of the battle) of Al-Jamal, Allah benefited me with a word I had heard from Allah's Apostle after I had been about to join the Companions of Al-Jamal (i.e. the camel) and fight along with them. When Messenger of Allah ﷺ was informed that the Persians had crowned the daughter of Khosrau as their ruler, he said, "Such people as ruled by a lady will never be successful." (Using translation from Bukhārī 4425)
قَدْ نَفَعَنِي اللهُ بِكَلِمَةٍ سَمِعْتُهَا مِنْ رَسُولِ اللهِ ﷺ بَعْدَ مَا كِدْتُ أَنْ أَلْحَقَ بِأَصْحَابِ الْجَمَلِ فَأُقَاتِلَهُ مَعَهُمْ بَلَغَ رَسُولُ اللهِ ﷺ أَنَّ أَهْلَ فَارِسَ مَلَّكُوا عَلَيْهِمُ ابْنَةَ كِسْرَى فَقَالَ لَنْ يُفْلِحَ قَوْمٌ وَلَّوْا أَمْرَهُمُ امْرَأَةً