Deuteronomy 13:1-4 – If there arise among you a prophet, or a dreamer of dreams, and giveth thee a sign or a wonder, and the sign or the wonder come to pass, whereof he spake unto thee, saying, Let us go after other gods, which thou hast not known, and let us serve them; thou shalt not hearken unto the words of that prophet, or that dreamer of dreams: for the Lord your God proveth you, to know whether ye love the Lord your God with all your heart and with all your soul. Ye shall walk after the Lord your God, and fear him, and keep his commandments, and obey his voice, and ye shall serve him, and cleave unto him.
Judges 2:20-23 And the anger of the Lord was hot against Israel; and he said, Because that this people hath transgressed my covenant which I commanded their fathers, and have not hearkened unto my voice; I also will not henceforth drive out any from before them of the nations which Joshua left when he died: that through them I may prove Israel, whether they will keep the way of the Lord to walk therein, as their fathers did keep it, or not. Therefore the Lord left those nations, without driving them out hastily; neither delivered he them into the hand of Joshua.
Isaiah 48:10 – Behold, I have refined thee, but not with silver; I have chosen thee in the furnace of affliction.
God is looking for a faithful bride:
Rev 17:14 - These shall make war with the Lamb, and the Lamb shall overcome them: for he is Lord of lords, and King of kings: and they that are with him are called, and chosen, and faithful.
Amos 3:3 – Can two walk together, except they be agreed