"Egypt is Islamic, it will not be secular, it will not be liberal," the crowd chanted in a funeral procession filling streets around the mosque. During the funeral, thousands chanted, "With blood and soul, we redeem Islam," pumping their fists. Mourners yelled that opposition leaders were "murderers."
One hard-line cleric denounced anti-Morsi protesters as "traitors." Another said Egypt would not be allowed to become "a den of hash smokers."
"We march on this path in sacrifice for the nation and our martyrs," a leading Brotherhood figure, Mohammed el-Beltagy, told the crowd. "We will keep going even if we all become martyrs. We will avenge them or die like them.
"Bread! Freedom! Islamic law!" the crowd chanted, twisting the revolutionary slogan of "Bread! Freedom! Social justice!" used against Mubarak.
At the same time, the anti-Morsi demonstrators streamed in from different parts of Cairo to the presidential palace in an upscale neighborhood for a fourth straight day.
Many were furious over the president's speech Thursday night in which he accused "hired thugs" of attacking protesters. Most witnesses said Wednesday's clashes began with supporters of the president attacking a tent camp set up by the anti-Morsi crowd.
Video clips emerged showing badly bruised faces of female activists and a man putting his hand over the mouth of one of them, prominent activist Shahanda Mekalad, to try to silence her as she chanted, "We are the Egyptian people." Other protesters were shown stripped naked and beaten up by Morsi supporters.
The violence has fed into the mistrust between the two sides.
Pressure on Morsi also came from his inner circle after he was hit by a string of resignations by some top aides protesting the violence. Criticism is also growing from journalists, including those working for state-run news organizations, over what they say are attempts by Islamists to control the media. Judges are on strike for two weeks and said they are not going to oversee the vote as stipulated by law, something that would erode the credibility of the process.
Salafis rallied Friday in front of Egypt's Media City south of Cairo, protesting coverage by privately owned networks.
Led by lawyer-turned-cleric Hazem Salah Abu-Ismail, with his trademark long, gray beard, the Salafis raised black flags and signs reading "hypocritical media," and brought bedspreads for a prolonged sit-in. Anti-riot police were deployed.
Violence also was reported in cities across Egypt either between members of the Muslim Brotherhood and police on one side and anti-Morsi protesters on the other side in the Mediterranean coastal city of Alexandria and Nile Delta city of Zagazig.
The sides pelted each other with stones outside the headquarters of the Brotherhood office in Nile Delta city of Kom Hamada, in the province of Beheira. In the Delta industrial city of Mahallah, protesters stopped trains and announced a sit in until the cancellation of Morsi's decrees and the referendum.
In the southern city of Assiut, hundreds of protesters chanted, "No Brotherhood, no Salafis, Egypt is a civic state." Mohammed Abdel Ellah, one of the protests' coordinators, said the secular groups are organizing street campaigns to get the public to vote "no" if a referendum is held.
But Muslim preachers in Assiut mosques called on worshippers to support Morsi. One cleric in the nearby village of Qussiya denounced the opposition as "those with wicked hearts" and "enemies of God's rule."
"The enemies of the president are enemies of God, Shariah and legitimacy" another preacher said, adding that it is prohibited to protest against the ruler.
Associated Press writer Maggie Fick contributed to this report.