Sunan an-Nasa'i, Book 49, Hadith 10 (Nasa'i 5397)

It was narrated that Abu Bakrah said:

"Allah protected me with something that I heard from the Messenger of Allah . 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.'"