Within Ezekiel 20 there are a few verses that talk about idolatry and refer to Mitzrayim. That made me wonder if the Israelites in Egypt forgot the G-d of their parents or exchanged Him for the gods of Egypt? Because in the parashat of shemot the names of all that came into Egypt (and were raised in a home were HaShem was known) and the way HaShem tells Moshe what to say if the people ask for His name seems so important... like they needed to hear these things in order to turn and follows Moshe. Besides that the people that went with Moshe seem to go back to these idols (like the golden cow incident) every time that they can't see or feel HaShem or are in a troublesome/difficult/harsh situation.
Did the hardness in Mitzrayim cause them to los faith and within time made them turn to idolatry of any kind?