Even before they were reduced to slavery, the Hebrews were likely shunned by the Egyptians because of racial pride or religious prejudice.
فَٱلْإِسْرَائِيلِيُّونَ عَرَفُوا تَمَامًا كَيْفَ يَشْعُرُ ٱلْغَرِيبُ .‏