Originally posted by Icemoon:
Inevitably, the question was asked in the Jewish tradition (Midrash Rabbah):
There are many other examples (though I confess I can't really remember most of them).
One example is 2 Thessalonians 2:11:
"And for this cause God shall send them strong delusion, that they should believe a lie:"
So it's not uncommon for god to cause someone to act a certain way, then punish them for it.
But then again, god isn't a just god anyway.
Exodus 20:5 is, in my opinion, the worst example:
"Thou shalt not bow down thyself to them, nor serve them: for I the LORD thy God am a jealous God, visiting the iniquity of the fathers upon the children unto the third and fourth generation of them that hate me;"
That children are to suffer for the sins of their fathers is completely unjust.