The biblical God did not oppose Egypt because it was not Israel, but because it was not just.
لا تياسىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىى ىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىى فرج الله قريب من غير عمليات