What happened to the prediction of the star Ra'ah?
Here it says "va'Yinachem Hashem", and in Bamidbar (23:19) it says "Lo Ish Kel vi'Chazev u'Ven Adam v'Yisnecham"!
Bechor Shor (Bereishis 6:7): There are three kinds of retraction. Sometimes a person promises, and could fulfill, but does not want to - this is Ish vi'Chazev. Sometimes he thinks that he can fulfill, but he errs, and b'Ones he cannot - u'Ven Adam v'Yisnecham. Hashem does retract when he decrees evil, e.g. on Ninveh, and they repent, or if He decreed good, and later man sins. 1 The retraction is due to man's change.
Rosh (Bereishis 6:6): This is because He judges according to one's merits at the time. Yirmeyah 18:7-10 says so (Da'as Zekenim Bamidbar 23:19, citing Bechor Shor).