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”””"
SahihSahihSahih BukhariBook 49 · Hadith 10