It’s not a lie. Mary and Joseph had to flee to Egypt to avoid the Christ Child being killed by Herod. He was an undocumented refugee in Egypt from his homeland of Israel.
Do you want the Bible lines?
"Undocumented refugee"? Oh, that's rich. I didn't know they had passports and green cards back then.