The statement that a woman cannot be a ruler or a head of state is contrary to the Qur’an!
According to narrations, it is stated that a woman cannot be a manager or head of state. This discourse is not found in the Qur’an. It is even contrary to these verses in the Qur’an:
* “Allah commands you to deliver trusts to whom they are due…” (an-Nisa  58).
* “O you who believe (who believe and trust)! Obey Allah, His Messenger and those who in authority among you. If you have a disagreement about something, take it to Allah and His Messenger…” (an-Nisa  59).
The Quran praises the knowledge and farsightedness of the queen, who is called Bilqis بِلْقِيس in Arabic sources, without giving a name in the verses (The Qur’an an-Naml  22-37). It can even be said that the only manager described in detail is Bilqis.
The Qur’an does not say anything against her presidency and status because she is a woman, does not condemn her, and does not state that this situation is wrong. The only issue that the Qur’an criticizes in terms of the belief of oneness is that she and her people worship the sun.
The Qur’an mentions Dawud (David), Sulaiman (Solomon) and Yusuf (Joseph) as the good male rulers on various occasions; also mentions Pharaoh and Nimrod as bad rulers. However, there is no explicit statement, not even a tacit implication, in the Qur’an to support the idea that men are natural leaders.
As a result, it is not possible to say that a woman cannot be a manager according to the Qur’an. It’s not a question of gender, it’s a question of competence/merit. Forbidding something that Allah has not explicitly prohibited is to teach religion to Allah:
“Say: “Will you teach Allah your religion?” (Hujurat  16).