Deuteronomy 4:30

After all these things which have been foretold have found you, in the end time, you shall return to the Lord your God, and you will hear his voice

Other versions

King James Version

When thou art in tribulation, and all these things are come upon thee, even in the latter days, if thou turn to the LORD thy God, and shalt be obedient unto his voice;

English Standard Version

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.

New International Version

When you are in distress and all these things have happened to you, then in later days you will return to the LORD your God and obey him.