By faith Moses was hidden by his parents for three months after his birth, because they saw that the child was beautiful; and they were not afraid of the king’s edict. By faith Moses, when he was grown up, refused to be called a son of Pharaoh’s daughter, choosing rather to share ill-treatment with the people of God than to enjoy the fleeting pleasures of sin. He considered abuse suffered for the Christ to be greater wealth than the treasures of Egypt, for he was looking ahead to the reward. By faith he left Egypt, unafraid of the king’s anger; for he persevered as though he saw him who is invisible. By faith he kept the Passover and the sprinkling of blood, so that the destroyer of the firstborn would not touch the firstborn of Israel. By faith the people passed through the Red Sea as if it were dry land, but when the Egyptians attempted to do so they were drowned. By faith the walls of Jericho fell after they had been encircled for seven days. By faith Rahab the prostitute did not perish with those who were disobedient, because she had received the spies in peace. (Hebrews 11:23-31, NRSV)
Moses started out as a basket case. He was hidden from the authorities by his parents because they were killing Israelite male babies. And then when he got to old to keep hidden they put him in a basket and put that in the river. Then he grew up in the house of Pharoh. Moses did not always do what was supposed to be done. Moses killed an Egyptian guard and then fled Egypt because of it, but God still used him.
We can fall away from God and know that God is still with us.
God will never leave us, if we just trust in him everything will work out.