An Egyptian court sentenced ousted president Hosni Mubarak and his two sons to three years in prison on Saturday after a retrial for embezzlement.