Sunan an-Nasa'i #5388
The Book of the Etiquette of Judges 49:10
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.'"