Deuteronomy 29:12-22

12 that thou shouldest enter into covenant with the LORD thy God, and into His oath, which the LORD thy God maketh with thee this day,
13 that He may establish thee today for a people unto Himself, and that He may be unto thee a God, as He hath said unto thee and as He hath sworn unto thy fathers, to Abraham, to Isaac, and to Jacob.
14 "Neither with you only do I make this covenant and this oath,
15 but with him that standeth here with us this day before the LORD our God, and also with him that is not here with us this day
16 (for ye know how we have dwelt in the land of Egypt, and how we came through the nations which ye passed by,
17 and ye have seen their abominations and their idols, wood and stone, silver and gold, which were among them);
18 lest there should be among you man or woman or family or tribe, whose heart turneth away this day from the LORD our God to go and serve the gods of these nations, lest there should be among you a root that beareth gall and wormwood,
19 and it come to pass, when he heareth the words of this curse, that he bless himself in his heart, saying, `I shall have peace, though I walk in the imagination of mine heart'--to add drunkenness to thirst.
20 The LORD will not spare him, but then the anger of the LORD and His jealousy shall smoke against that man, and all the curses that are written in this book shall lie upon him, and the LORD shall blot out his name from under heaven.
21 And the LORD shall separate him unto evil out of all the tribes of Israel, according to all the curses of the covenant that are written in this Book of the Law,
22 so that the generation to come of your children who shall rise up after you, and the stranger who shall come from a far land, shall say, when they see the plagues of that land and the sicknesses which the LORD hath laid upon it,