That sounds like a merciful warning and a strategy given by God to prepare for something that was not going to be averted because of any prayers.
ىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىىى link