Egyptian officials say the police have detained the sons of former president Hosni Mubarak in connection with insider trading charges.

They said the arrests were ordered on Saturday by Judge Ahmed Aboul-Fetouh, who adjourned the hearings until Oct. 20.

The two — Alaa, a wealthy businessman, and Gamal, once considered Mr. Mubarak’s heir apparent — were taken to a prison south of Cairo after the hearing, said the officials who spoke on condition of anonymity because they were not authorized to brief the media.

They were accused, with seven other men, of violating stock market and central bank rules to make unlawful profits through dealing in shares of Al Watany Bank of Egypt, and they deny any wrongdoing, the Reuters news agency reported. All those accused in the case, which began in 2012, had previously been released on bail and barred from travel.