God heard the boy's cries, and the angel of God called to Hagar from heaven and asked her, “What's the matter, Hagar? Don't be afraid! God has heard the boy crying from where he is.
If it weren't for the God of my father, the God of Abraham, the awesome God of Isaac, who took care of me, you would have dismissed me with nothing. But God saw my suffering, how hard I worked, and he condemned you last night.”
But the Lord graciously helped them and was kind to them. He looked after them because of his agreement with Abraham, Isaac, and Jacob. Even to this day he's been unwilling to destroy them or to throw them out of his presence.
His prayer and how God answered him, as well as all his sins and unfaithfulness, and where he built high places and set up Asherah poles and idols before he admitted he was wrong, are recorded in the Records of the Seers.
“I'm completely aware of the misery of my people in Egypt,” the Lord told him. “I have heard them crying out because of their taskmasters. I know how much they're suffering.
He suffered with them in all their suffering, and the angel of his presence saved them. In his love and kindness he redeemed them. He picked them up and carried them all throughout those years long ago.
They say to an idol made of wood, “You are my father,” and one made of stone, “You gave birth to me.” They turn their backs on me, and hide their faces from me. But when they're in trouble they come begging to me, saying, “Please come and save us!”
The people went to see Moses and told him, “We were wrong to make complaints against the Lord and against you. Please pray to the Lord to get rid of the snakes from us.” Moses prayed to the Lord on their behalf.