The Messenger of Allah ﷺ said, "A people who appoint a woman as their ruler will never succeed."
حدثنا يزيد بن هارون حدثنا مبارك بن فضالة عن الحسن
قال رسول الله ﷺ لا يفلح قوم تملكهم امرأة
Its chain of transmission is sahih.