Certainly there are those matters which God cannot do? Clearly, there are those attributes and wisdom which he possesses necessarily, his holiness and wisdom. He cannot but act holily; he cannot but be wise.
'Tis the glory and greatness of the divine sovereignty, that God's will is determined by his own infinite all-sufficient wisdom in everything: and in nothing at all is either directed by any inferior wisdom, or by no wisdom: whereby it would become senseless arbitrariness, determining and acting, without reason, design or end'
Jonathan Edwards, The Freedom of the Will, Part IV, Section 7.