One way to answer it is to assume that God has a human-like will that can be changed by persuasion. In Genesis 18:16-33, we find a supportive scriptural passage. Abraham prayed for God to change His will to destroy the city of Sodom. According to this passage, Abraham was able to bargain with God.