In Exodus chapter 32 verse 14 it states: ‘So the Lord changed his mind about the terrible disaster he had threatened to bring upon his people.’ In Judges 2 verse 18, it further comments on the Lord saying: ‘for it repented the Lord because of the groaning of the people’ by reason of them that oppressed and vexed them.’ In Genesis chapter 6 verse 6 it states: ‘So the Lord was very sorry that he had ever made them (mankind). It broke his heart. And the Lord said, ‘I will wipe this human race I have created from the face of the earth. Yes, and I will destroy every living thing.’ But Noah found favour with the Lord and the Lord changed his mind and did not wipe out Noah and his family, and permitted him to save two of every kind of living thing.
In Judges 2 verses 16-23 it states: ‘Then the Lord raised up judges, who saved them out of the hands of these raiders. Yet they would not listen to their judges but prostituted themselves to other gods and worshiped them. They quickly turned from the ways of their ancestors, who had been obedient to the Lord’s commands. Whenever the Lord raised up a judge for them, he was with the judge and saved them out of the hands of their enemies as long as the judge lived; for the Lord relented because of their groaning under those who oppressed and afflicted them. But when the judge died, the people returned to ways even more corrupt than those of their ancestors, following other gods and serving and worshiping them. They refused to give up their evil practices and stubborn ways. Therefore the Lord was very angry with Israel and said, ‘Because this nation has violated the covenant I ordained for their ancestors and has not listened to me, I will no longer drive out before them any of the nations Joshua left when he died. I will use them to test Israel and see whether they will keep the way of the Lord and walk in it as their ancestors did.’ The Lord had allowed those nations to remain; he did not drive them out at once by giving them into the hands of Joshua.’
In Samuel 15 verse 35, ‘the Lord repented that he had made Saul.’ It would appear that God is capable of changing His mind and repenting of unforeseen trouble or of people who disobey him and worship idols.