In Exodus 3:7-10, God came to Moses in a burning bush and told him that He had decided to deliver His people out of the hand of the Egyptians. Moses would be the one who would be their leader. Although Moses was reluctant at first, throughout the book of Exodus, we can read of Moses' obedience to God. He not only led the people, but also gave them the law God wanted them to live by. He was faithful to God (Hebrews 3:2, 5).
However, in Numbers 20:12-13, it is recorded that Moses did not follow God's instructions and did not glorify Him before the Israelites. When the people were in Kadesh, they were thirsty. God told Moses and Aaron to speak to the rock. Instead, they struck the rock after saying to the people, "Hear now, ye rebels; must we fetch you water out of this rock?" Psalm 106:33 says that Moses "spake unadvisedly with his lips." Moses and Aaron took the glory of the miracle and did not give glory to God.
Because of this, he was not allowed to enter the promised land. Likewise, we need to live right or we will lose our chance to go to heaven (Matthew 7:21-23; 25:31-46). Eternal life depends upon obedience, not only upon faith. Are you living up to God's standards? If you are not, you need to repent and be converted (Acts 3:19), being baptized for the remission for your sins (Acts 2:38). Please leave us a comment if you would like to study further.