Sometime after the creation of Adam and Eve on the sixth day of creation, see Genesis 1:26-31, they rebelled against God by eating the fruit of the tree of the knowledge of good and evil.
“So when the woman saw that the tree was good for food, that it was pleasant to the eyes, and a tree desirable to make one wise, she took of its fruit and ate. She also gave to her husband with her, and he ate.” Genesis 3:6.
“…that you may be counted worthy of the kingdom of God, for which you also suffer; since it is a righteous thing with God to repay with tribulation those who trouble you…” 2 Thessalonians 1:5b-6.
“Brethren, if anyone among you wanders from the truth, and someone turns him back, let him know that he who turns a sinner from the error of his way will save a soul from death and cover a multitude of sins.” James 5:19-20.
“Blessed is the man who endures temptation; for when he has been proved, he will receive the crown of life which the Lord has promised to those who love Him.” James 1:12.