A curse is “a solemn utterance intended to invoke a supernatural power to inflict harm or punishment on someone or something”. God does not “curse” people; but the scriptures show how the consequences (cursings) of disobedience are contrasted with the blessings (favor) of obedience to God's laws.
When Adam and Eve disobeyed, they passed the hereditary “curse” of sin and death to all succeeding generations. “Therefore, just as sin entered the world through one man, and death through sin, and in this way death came to all people, because all sinned” (Romans 5:12; see also Psalms 51:5).
Some individuals directly experience the consequences of their own disobedience. For example, King David was punished directly for his sin with Bathsheba (2 Samuel 12) and Moses was punished for smiting the rock (Numbers 20). Most others indirectly experience the consequences of disobedience. Some sins that parents commit (drunkenness, incarceration, gambling or lying for example) can impact a family indirectly for generations.
In Deuteronomy 5:9, Exodus 20:5 and 34:6-7, God detailed blessings or cursings that could be anticipated to the third and fourth generations. “Behold, today I am setting before you a blessing and a curse—the blessing, if you listen to and obey the commandments of the Lord your God… and the curse, if you do not listen to and obey the commandments of the Lord your God…” (Deuteronomy 11). When the “Fathers of Israel” failed in obedience and faith to their covenant with God, their children felt the consequences of disobedience. (See Numbers 14:18).
In Leviticus 26:39-42- they were told that ”… if they will confess their sins and the sins of their fathers …