Offering were rejected in the Bible several times. I list the notable few that came to mind.
Mal 1:7 Ye offer polluted bread upon mine altar; and ye say, Wherein have we polluted thee? In that ye say, The table of the LORD is contemptible.
Mal 1:8 And if ye offer the blind for sacrifice, is it not evil? and if ye offer the lame and sick, is it not evil? offer it now unto thy governor; will he be pleased with thee, or accept thy person? saith the LORD of hosts.
In Malachi they offered the lame and otherwise diseased animals and the Lord was angry and rejected their offering calling it evil. This would not be a good example of an offering from a lottery win because intrinsically there is nothing broken about the money nor is the money in and of itself defective.
1Sa 15:14 And Samuel said, What meaneth then this bleating of the sheep in mine ears, and the lowing of the oxen which I hear?
1Sa 15:21 But the people took of the spoil, sheep and oxen, the chief of the things which should have been utterly destroyed, to sacrifice unto the LORD thy God in Gilgal.
1Sa 15:22 And Samuel said, Hath the LORD as great delight in burnt offerings and sacrifices, as in obeying the voice of the LORD? Behold, to obey is better than sacrifice, and to hearken than the fat of rams.
Saul did not kill everything pertaining to the Amalkites which included things of value like the ox and lambs. They were specifically told not to take these items and Saul refused the command of the Lord choosing instead to give offerings. God rejected this saying the famous to obey is better than sacrifice and to hearken the fat of rams. However it should be noted that this prohibition of taking spoils from the enemy did not apply to all enemies. This would fit lottery earnings if the Lord specifically told you not to partake in the lotto.
Gen 4:3 And in process of time it came to pass, that Cain brought of the fruit of the ground an offering unto the LORD.
Gen 4:4 And Abel, he also brought of the firstlings of his flock and of the fat thereof. And the LORD had respect unto Abel and to his offering:
Gen 4:5 But unto Cain and to his offering he had not respect. And Cain was very wroth, and his countenance fell.
Cain offered some fruit to the Lord and it was rejected. Some speculate that it was rejected because it was not a lamb the type of Christ. Other speculate that it was rejected because it was not first fruits but simply some of the fruit. Regardless of the why it too was rejected.
2Ki 5:15 And he returned to the man of God, he and all his company, and came, and stood before him: and he said, Behold, now I know that there is no God in all the earth, but in Israel: now therefore, I pray thee, take a blessing of thy servant.
2Ki 5:16 But he said, As the LORD liveth, before whom I stand, I will receive none. And he urged him to take it; but he refused.
Namen tried to buy a healing after the fact. He would have given much to be cleansed of his leprosy but it was rejected and when Gehazi violated the command of the Lord the leprosy of Namen came on him. Giving lotto earning might fit trying to buy a blessing from the Lord but in other places we are told to give generously and that the Lord bless those who give so this too cannot be universally applicable to the lotto.
Pro 13:22 A good man leaveth an inheritance to his children's children: and the wealth of the sinner is laid up for the just.
Finally if the Lord specifically laid up wealth from a wicked person even that which was gained by a wicked person dishonestly it would be poor judgement and unwise to reject it because wicked hands had touched it. That said some forms of money are confiscated by the United States Government after the fact because of its ties to illegal activities however gambling is not one of those activities.