Alaa and Gamal Mubarak, the two sons of Egypt's ousted leader Hosni Mubarak, were freed from prison on Friday pending a corruption retrial, state media reported.