Why Allah Distracts People And Seal Their Hearts
so there was a chance of them accepting islam but allah said it was enough
There was no chance. They sealed their hearts. This action is ascribed to God because all physical and psychological laws are initiated by God.