Deuteronomy 8:2 And thou shalt remember all the way which the LORD thy God led thee these forty years in the wilderness, to humble thee, and to prove thee, to know what was in thine heart, whether thou wouldest keep his commandments, or no.
God wanted His people to remember all that He had done in their lives. He had led and directed them for forty years. God had used those forty years to prove who He was. He humbled them. He was showing them their need of Him. God had been testing them to see if they would obey Him. God obviously knows what is in their hearts, but He puts them in situations that reveal their hearts to them.
God is at work in your life. You often do not realize what He is doing. God is also testing you. He is finding out if you will obey Him or yourself. He wants you to see what is in your heart. You claim to love and honor Him until it costs you something.
Have you ever thought that every problem, heartache, etc. that you have has a purpose? God just might be proving you. What does it take to make you quit? What does it take to make you back up? Do right. Do not allow anything that happens to get you off track.