"When you are in tribulation, and all these things come upon you in the latter days, you will return to the Lord your God and obey his voice" (Deuteronomy 4:30 RSV).
The Book of Deuteronomy is structured as three "final talks" that Moses addresses to the people of Israel before he leaves them. This verse is from the conclusion of the first talk. He warns the people that they will be tempted to intermingle and intermarry with the non-Israelites already inhabiting the land to which they're going. The result, he says, will be that their commitment to their own God, the Lord, will become scattered and weak, and they will experience "tribulations" as a result. Nonetheless, he assures them, those tribulations will serve to return them to the faith they've forgotten.
I think this process is familiar to all of us. We allow ourselves to become distracted by the challenges and temptations of our mortal lives, losing the awareness that each of us is a spiritual expression of the Presence and Power that is the "Lord of our being." But we are never as weak and confused as our mortal minds insist we are. When we have learned the lessons offered by those human challenges, we will remember to embrace and express that spiritual Truth.