Deuteronomy 28 contains a list of blessings that God would bestow on the people of Israel for obeying him, and a much longer list of curses if they didn't.
45 ¶ Moreover all these curses shall come upon thee, and shall pursue thee, and overtake thee, till thou be destroyed; because thou hearkenedst not unto the voice of the LORD thy God, to keep his commandments and his statutes which he commanded thee:
46 And they shall be upon thee for a sign and for a wonder, and upon thy seed for ever.
47 Because thou servedst not the LORD thy God with joyfulness, and with gladness of heart, for the abundance of all things;
62 And ye shall be left few in number, whereas ye were as the stars of heaven for multitude; because thou wouldest not obey the voice of the LORD thy God.
63 And it shall come to pass, that as the LORD rejoiced over you to do you good, and to multiply you; so the LORD will rejoice over you to destroy you, and to bring you to nought; and ye shall be plucked from off the land whither thou goest to possess it.
64 And the LORD shall scatter thee among all people, from the one end of the earth even unto the other; and there thou shalt serve other gods, which neither thou nor thy fathers have known, even wood and stone.
65 And among these nations shalt thou find no ease, neither shall the sole of thy foot have rest: but the LORD shall give thee there a trembling heart, and failing of eyes, and sorrow of mind:
66 And thy life shall hang in doubt before thee; and thou shalt fear day and night, and shalt have none assurance of thy life: