Egyptians exit El-Rahman El-Rahim mosque after Friday prayers in the Cairo neighborhood of Nasr City in this September photo. (Tara Todras-Whitehill/For The Washington Post)

One recent Friday, Egyptian officials dispatched an Islamic preacher named Mustafa Nawareg to a mosque full of angry people — distraught relatives and friends of demonstrators killed by security forces.

It was a crowd used to hearing fiery sermons that called the dead “martyrs” and exhorted followers to take to the streets. But now the crowd would hear from Nawareg, who was sent there by the government to “correct the fallacies of extremist thought.”

It took about five minutes for the shoes to start flying.

“Who paid you to say this?” yelled one man, according to Nawareg and others at El-Rahman El-Rahim mosque that day.

“Come down from your stage, you infidel!” yelled another as the crowd surged toward Nawareg. He felt hands clasp his neck before he managed to escape.

Nawareg’s sermon was part of a campaign by Egypt’s military-backed government to “standardize religious discourse” and promote what authorities describe as the true “Egyptian Islam.”

But critics say the effort could add fuel to a violent backlash that has included a suicide bombing in the heart of Cairo and regular attacks on security forces in the Sinai Peninsula.

Although the government’s initiative promotes a separation between Islam and politics, opponents say that the new push serves the decidedly political purpose of casting a divine glow on the brutal crackdown against supporters of ousted president Mohamed Morsi. Hundreds of Morsi’s backers in the Muslim Brotherhood have been killed and thousands arrested by authorities, who describe them as “terrorists.”

“This is the new regime trying to create an official Islam, a state Islam, which doesn’t exist within the Islamic tradition,” said Emad Shahin, a professor of public policy at the American University in Cairo. “It’s providing a religious justification to tolerate the killing of possibly thousands of people, and it is sending alarming signals into many segments of society. This is exactly what you call fascism.”

Pop culture is taking the cue, Shahin noted, pointing to a new song being played around Cairo. It is called “We Are a People, and You Are a Different People,” a thinly veiled reference to Morsi’s followers.

“We have a God, and you have a different God,” the lyrics go. “Because Egypt is in our blood, we will never be like you, and you will never be like us. . . . Take your yelling and your screaming and your fatwas and go far away from our land.”

So far, the Ministry of Endowments, which regulates mosques, has effectively disqualified tens of thousands of preachers in the country, imams known for urging a more Islamist political order and, lately, for rallying followers to protest the July 3 coup that ousted the democratically elected Morsi.

In their place, the ministry has mandated that all preachers be government-­certified graduates of Cairo’s al-Azhar University, the world’s preeminent institution of moderate Sunni learning. Al-Azhar has also been closely associated with a string of Egyptian autocrats.

The goal, officials said, is to promote an “Azhari paradigm” of Islam, which they describe as an “Egyptian notion of religiosity” that tolerates no explicit talk of politics while encouraging respect for government institutions, including the military.

“It is balanced, open, respectful of traditions and very aware of current changes in reality,” said Ibrahim Negm, a senior adviser at al-Azhar. “We want to return religion to its rightful place, as a forum of spiritual guidance, not as a forum of political debate.”

Penalties for those who violate the new rules are under discussion. Negm and others bluntly defend the curbing of religious freedom as necessary, given the 21 / 2 turbulent years since the uprising that toppled longtime autocrat Hosni Mubarak.

“In normal societies where you have 100 percent literacy, you can implement democratic values,” Negm said. “In Egypt, it’s very risky to leave things as they are because experiments have made us realize — too late — that not regulating the religious landscape leads to violence and terror.”

A long struggle over Islam

The struggle to define Islam in Egypt has a long history, one pitting the Muslim Brotherhood and other dissidents who favor political Islam against the more secularly oriented establishment.

Egyptian President Gamal Abdel Nasser established the Ministry of Endowments in the 1950s, around the time that he survived an assassination attempt by a Brotherhood member and banned the organization.

All his successors launched periodic crackdowns on Islamist preachers, though the wider goal of stifling their ideas inevitably failed in a country with more than 100,000 mosques and millions drawn to sermons promising a more perfect Islamic society.

The 2011 revolution that toppled Mubarak unleashed the full power of the Islamist movement, sweeping Morsi to the presidency. But during his troubled year at the nation’s helm, Morsi also attempted to drag Islam in the Brotherhood’s direction, removing moderate preachers considered to be Mubarak allies and replacing them with Islamists who proselytized for Morsi’s agenda.

The struggle played out within al-Azhar itself, as Islamists attempted to wrest control of the revered 1,000-year-old institution from its traditionally moderate leadership. The moves alienated Egyptians who follow a more moderate Islam, and their massive protests helped the military justify the coup.

In his first address to the nation after Morsi’s ouster, Egypt’s army chief, Gen. Abdel Fatah al-Sissi, was flanked by Sheik Ahmed al-Tayeb, the grand imam of al-Azhar, whose close associates run the Ministry of Endowments.

In the larger mosques across Cairo, plastic-coated signs are going up on the gates these days: “The Ministry of Endowments is the only one that completely and generally supervises the mosque.”

New tone in sermons

Morsi supporters say they are hearing new sermons, sometimes urging them to rally around the military, other times dwelling on matters such as health care.

“Last Friday, the preaching was all about military rule and the marches,” said Mohamed Ali, a doctor, speaking during one of the dwindling Friday protests by Morsi supporters. “This Friday, it was about the treatment of honey for diseases. I wanted to leave, but I felt it was not acceptable.”

The Friday after Nawareg was attacked at El-Rahman El-Rahim, worshipers began streaming in around noon — cleanshaven men and others with beards, women in colorful scarves and some in conservative black niqabs.

They passed through the gates, where there was a checkpoint manned by several security guards, who rummaged through backpacks and satchels. An old Azhari professor of Nawareg’s delivered a sermon about how God’s plan can be found in the details of nature, and there was no shouting.

Afterward, some worshipers stopped to talk about what had happened the previous Friday.

“Those people are not Muslims,” said one man, referring to the Brotherhood supporters. “They are terrorists, and we will not stop until we catch them all. Thank God the government is with us.”

“We are very positive, very optimistic,” agreed Ashraf Ibrahim, 43. “Things are getting better and better every day.”

As the gathering crowd nodded, a man in the middle spoke up to disagree.

“These preachers are taking orders from the government, and it’s a united message in all the mosques,” said Ala Ahmed, 32. “It is military rule, and we are living our lives according to them, even the sermons.”

The crowd was now about 30 strong, and members started yelling at Ahmed.

“They are trying to separate us so they can kill us,” he continued.

More yelling.

“Finally!” shouted a man in the back, offering support. “Someone who is telling the truth!”

But now the yelling was louder, and there was shoving and grabbing, and then the crowd began chasing the two dissenters alongside the ivory mosque, beating them in the parking lot as people passed by.

Sharaf al-Hourani and Lara El Gibaly contributed to this report.