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