It is unlikely that he said anything like this when Mubarak was in power, but of course Mubarak did not rule according to Islamic law. "Egypt: Conspiring Against Ruler Is Conspiring Against God - Salafi," from Aswat Masriya, August 19 (thanks to Twostellas):
Salafi (ultraconservative) leader and member of the constituent assembly, tasked with rewriting the constitution, Saeed Abdel Azeem, said that conspiring against Egypt's ruler (President Mohamed Mursi) is equal to conspiring against God.
Describing Egypt's president as the "ruling imam", Abdel Azeem argued that as Mursi may be unable to apply the law of God fully at this point, the nation must overcome political differences and rally behind him.
He added in his Eid speech on Sunday in Alexandria's Shohadaa Square that Egypt will return to being ruled by Islam and Prophet Mohamed's Sunnah and not democracy, socialism or nationalism.
The Salafi politician insisted that all forces must unite in order for God's law to be applied during an era, he described as, "of phenomenons"; where tyrants fall and it is useful to follow those who came before us and not those of modern times....