(49) The Book of the Etiquette of Judges
كتاب آداب القضاة
(8) Chapter: Prohibition of Appointing Women for Judgment
(8) باب النَّهْىِ عَنِ اسْتِعْمَالِ النِّسَاءِ، فِي الْحُكْمِ
Sunan an-Nasa'i 5388 
It was narrated that Abu Bakrah said:
"Allah protected me with something that I heard from the Messenger of Allah [SAW]. When Chosroes died, he said: 'Whom have they appointed as his successor?' They said: 'His daughter.' He said: 'No people will ever prosper who entrust their leadership to a woman.'"
أَخْبَرَنَا مُحَمَّدُ بْنُ الْمُثَنَّى، قَالَ حَدَّثَنَا خَالِدُ بْنُ الْحَارِثِ، قَالَ حَدَّثَنَا حُمَيْدٌ، عَنِ الْحَسَنِ، عَنْ أَبِي بَكْرَةَ، قَالَ عَصَمَنِي اللَّهُ بِشَىْءٍ سَمِعْتُهُ مِنْ، رَسُولِ اللَّهِ صلى الله عليه وسلم لَمَّا هَلَكَ كِسْرَى قَالَ ‏"‏ مَنِ اسْتَخْلَفُوا ‏"‏‏.‏ قَالُوا بِنْتَهُ‏.‏ قَالَ ‏"‏ لَنْ يُفْلِحَ قَوْمٌ وَلَّوْا أَمْرَهُمُ امْرَأَةً ‏"‏‏.‏
Grade :  Sahih (Darussalam)
Reference : Sunan an-Nasa'i 5388
In-book reference : Book 49, Hadith 10
English translation : Vol. 6, Book 49, Hadith 5390