We are traveling roundtrip from the US to Cairo through Dubai (on Emirates), but during the latter part of our stay in Egypt we're flying over to Saudi Arabia for a few days (going in to Jeddah and out from Medina). Because our Cairo to Dubai flight leaves just after midnight (12:25am) and we're returning from Saudi Arabia the day before we leave, we were hoping not to have to spend the night in Cairo before our Dubai flight.
I have not booked the Cairo-Saudi Arabia tickets yet, but I'm wondering how close of a window between arriving in Cairo from Saudi Arabia and leaving to Dubai is too close. One flight on Saudi Airlines gets into Cairo at 6:55pm, leaving us about five and a half hours until our Cairo to Dubai flight. Is that OK, or is it too risky?