There is a difference of opinion among Muslims regarding the circumstances in which women may act as imams, i.e. to lead a mixed gendered congregation in salat (prayer).

A small number of schools of Islamic thought make exceptions for tarawih (optional Ramadan prayers) or for a congregation consisting only of close relatives. Women acting as leaders, teachers, and authorities in other capacities however is not deviating from the Islamic orthodoxy, as women have never been restricted from becoming scholars, ulema, jurists, muftis, preachers, missionaries, or spiritual guides. There is a long history of female masters of Islamic sciences teaching men.

Historically, certain sects have considered it acceptable for women to function as imams. This was true not only in the Arab heartland of early Islam, but in China over recent centuries, where women's mosques developed. The debate has been reactivated during the 21st century as the west and the world revisit sexism. Those critical of the ruling that women cannot lead congressional prayers have argued that the spirit of the Qur'an and the letter of a da'if (weak) hadith (saying of Mohammed) indicate that women should be able to lead mixed (albeit children) congregations, as opposed to sex-segregated congregations, and they suggest that the prohibition against the practice originated from sexism in the medieval environment and from inaccurate patriarchal interpretations of religious texts, rather than from a spirit of "true Islam".

Precedents

The Qur'an does not address this issue; relevant precedents are therefore sought for in the hadith, the traditions attributed to Muhammad; the sunnah, his actions, including but not limited to hadith; and the principle of ijma, consensus.

An indirectly relevant hadith is widely considered to be crucial, since the imam stands at the front of the congregation. The hadith in question is #881 of Sahih Muslim: "Abu Huraira said: The best rows for men are the first rows, as opposed to the last ones, and the best rows for women are the last ones as opposed to the first ones."

The hadith of Umm Waraqa has given rise to debates among Islamic leaders on whether it is acceptable or not for women to lead prayers, including mixed-gender congregational prayer. Umm Waraqa bint Abdallah, an Ansari woman, who knew the entire Quran, was instructed by Muhammad to lead ahl dariha, which consisted of both men and women, in prayer. The Arabic phrase means "the people of her home", but the ambiguity hangs on the exact translation of dar, "home", which can refer to one's residence, neighborhood, or village. The "people of Umm Waraqa’s home" were so numerous that Muhammad appointed a muezzin to call them to prayer. Umm Waraqa was one of the few to hand down the Quran before it was recorded in writing. She could do so because she had memorized the entire corpus.Women in Islam By Wiebke Walther published by Markus Wiener Publishing, 1981, p. 111 (citing Ibn Sad, Kitab al-Tabaqat al-Kabir, vol. 8, p. 335)

The use of the word dar in the hadith, when speaking of where the prayer was held, has resulted in different interpretations. A general translation is "area", constituting the community around where Umm Waraqa lived. This idea is not accepted by many scholars. Another translation of dar is "household", which would mean that Umm Waraqa led prayers in her home. Who was she leading? Imam Zaid presents three possibilities: the two servants of her household and the mu'ahdhin, or the women of her surrounding “area”, or only the women of her household. Each of these possibilities requires certain assumptions, but the most accepted is that Umm Waraqa was leading the women of her household, thus leading to the conclusion that women are allowed to lead prayers of all-female congregations. Zaid insists that if Muhammed established a mosque in the household of a man, which was not uncommon, Itban b. Malik, then he must also have set up women-only congregations.

With regard to women leading congregations of women, however, several hadith report that two of Muhammad's wives, Aisha and Umm Salamah, did so, and as a result most madhhabs support this. According to Qaradawi:

The hadith of `A’ishah and Umm Salamah (may Allah be pleased with them). `Abdur-Raziq (5086), Ad-Daraqutni (1/404) and Al-Bayhaqi (3/131) reported from the narration of Abu Hazim Maysarah ibn Habib from Ra’itah Al-Hanafiyyah from `A’ishah that she led women in Prayer and stood among them in an obligatory Prayer. Moreover, Ibn Abi Shaybah (2/89) reported from the chain of narrators of Ibn Abi Layla from `Ata’ that `A’ishah used to say the Adhan, the Iqamah, and lead women in Prayer while standing among them in the same row. Al-Hakim also reported the same hadith from the chain of narrators of Layth Ibn Abi Sulaim from `Ata’, and the wording of the hadith mentioned here is Al-Hakim’s.

Furthermore, Ash-Shafi`i (315), Ibn Abi Shaybah (88/2) and `Abdur-Raziq (5082) reported from two chains of narrators that report the narration of `Ammar Ad-Dahni in which he stated that a woman from his tribe named Hujayrah narrated that Umm Salamh used to lead women in Prayer while standing among them in the same row.

The wording of `Abdur-Raziq for the same hadith is as follows: “Umm Salamah led us (women) in the `Asr Prayer and stood among us (in the same row).”

In addition, Al-Hafiz said in Ad-Dirayah (1/169), “Muhammad ibn Al-Husain reported from the narration of Ibrahim An-Nakh`i that `A’ishah used to lead women in Prayer during the month of Ramadan while standing among them in the same row.

Further, `Abdur-Raziq reported (5083) from the narration of Ibrahim ibn Muhammad from Dawud ibn Al-Husain from `Ikrimah from Ibn `Abbas that the latter said, “A woman can lead women in Prayer while standing between them.”

All of the hadiths state that the given woman leads the other women in prayers while standing among them in the same row, and not standing on the first row of the prayers as imams do. They further state that they were among only women, not male worshippers.

Aside from the hadith, there are other sources to consider. The sunnah is a more general source of precedent; it is usually considered to count against women leading mixed congregations, as there are no reports of it happening in Muhammad's time, unless, as Amina Wadud suggested, the aforementioned Umm Waraqa hadith is interpreted to apply to her town rather than to her household alone.

A third source of precedent is the principle of ijma—consensus—supported by the hadith "My community will never agree upon an error." This is also generally quoted against the idea of women leading mixed congregations, since the consensus of the traditional jurists is overwhelmingly against the concept; however, supporters of the idea argue that this consensus is not universal.

One of the most authoritative overviews of the viewpoints of the classical jurists on whether women may lead the prayer or not is "Whether to Keep Women out of the Mosque: A Survey of Medieval Islamic Law" written by Christopher Melchert.Melchert, Christopher. "Whether to Keep Women out of the Mosque: A Survey of Medieval Islamic Law". Pages 59–69 in Authority, Privacy and Public Order in Islam: Proceedings of the 22nd Congress of l'Union Européenne des Arabisants et Islamisants. Edited by B. Michalak-Pikulska and A. Pikulsi. Orientalia Lovaniensia Analecta 148. Leuven: Peeters, 2006.

Women-only congregations Schools differ on whether a woman may be imam (leader) of a jama'ah (congregational) prayer if the congregation consists of women alone. Three of the four Sunni madhhabs—Shafi'is, Hanafis, and Hanbalis—allow this, although Hanafis consider it to be makrooh, a disliked act. (The fourth division, Malikis, do not permit women to lead women in prayer.) Where it is allowed, the woman stands among the congregation in the front row, instead of alone in front of the congregation. In 2000, six maraji among Iran's Shia leadership declared that they too allowed women to lead a woman-only congregation, reversing a previous ban in that country.

An unusual feature of Islam in China is the existence of nüsi, mosques solely for women. The imams and all the congregants are women and men are not allowed into the buildings. A handful of women have been trained as imams in order to serve these mosques. However, in at least some communities where these mosques operated, women were not allowed in the men's mosques. In recent years, efforts have been made to establish similar mosques in India and Iran.

Mixed-gender congregations

On the basis of the following interpretation of the Qur'an, Ibn al-Arabi, a Sufi scholar, said female prayer leadership is absolutely permissible.

Within the household, if no qualified man is present, is the one exception for women to lead men in prayers."Female Prayer Leadership (Revisited)" , New Islamic Directions by Imam Zaid, 2008-04-22. Retrieved on 2008-11-29.] Modern Islamic scholars such as Dr. Yusuf Al-Qaradawi, based on the Umm Waraqah hadith mentioned above, consider it permissible for a knowledgeable woman to lead mixed prayers within her own household, as he considers this to largely obviate the danger of the men being aroused by her presence.

In the early years of Islam, the Haruriyyah sect, a branch of the Kharijites movement, founded by Habib ibn-Yazīd al-Harūrī, held that it was permissible to entrust the imamate to a woman if she were able to carry out the required duties. Not only did she lead Muslim men in prayer, she recited the two longest chapters in the Quran during that prayer.History of Messengers and Kings, By al-Tabari, 51:80; Ali Masudi, Gardens of Gold, Dar al-Andalus, Beirut, 1965, 3:139

Well-known early jurists—including Al-Tabari (838–932), historian, exegete and founder of a now defunct juristic school; Abu Thawr (764–854), mufti of Iraq; Al-Muzani (791–878); and Ibn Arabi (1165–1240)—considered the practice permissible at least for optional (nafl salat) prayers.

A few fatwas exist permitting women to lead a mixed gender congregation regardless of familial relationship. For instance, Dr. Khaled Abou El Fadl recommends that the placement of the imam be made with greater modesty in mind for a female imam. Some traditional scholars caution against Yusuf Qaradawi's methodology and regard him as excessively lenient as he does not limit himself to the positions of the four Sunni schools of fiqh.

Adding to the arguments in favor of woman-led prayer of mixed congregations, Laury Silvers and Ahmed Elewa recently published a detailed article in the Journal of Law and Religion arguing that female imams are permissible in all circumstances. Their abstract reads: This paper, written five years after the Wadud prayer, presents a survey and analysis of the various responses to female led mixed-gender congregational prayers as well as a legal argument for its default permissibility. We show that, in interpreting the Hadiths on woman-led prayer, Sunni schools of law hold a range of opinions on its permissibility. We discuss how Muslim jurists consider historical needs in their rulings, the role of female modesty in this debate, and the nature of juristic consensus. We present our own argument that unrestricted female prayer leadership is legal by default rather than an innovation as many critics have charged. Finally, we set out our own different positions on the propriety of Muslim women asserting their inclusion in the current situation.

In individual countries Algeria

The first female imam was recruited in 1993 during the Algerian Civil War. Appointed by the Ministry of Religious Affairs, they all have at least a bachelor's degree in Islamic sciences and a thorough knowledge of the Quran. There were around 500 of them in 2015.

Bahrain