Mohamed Fahmy and Baher Mohamed were pardoned by the president, Abdel Fatah al-Sisi, along with about 100 other prisoners.