"This expression [of our Lord], 'How often would I have gathered thy children together, and thou wouldest not,' set forth the ancient law of human liberty, because God made man a free [agent] from the beginning, possessing his own power, even as he does his own soul, to obey the behests (ad utendum sententia) of God voluntarily, and not by compulsion of God. For there is no coercion with God, but a good will [towards us] is present with Him continually. And therefore does He give good counsel to all. And in man, as well as in angels, He has placed the power of choice (for angels are rational beings), so that those who had yielded obedience might justly possess what is good, given indeed by God, but preserved by themselves. On the other hand, they who have not obeyed shall, with justice, be not found in possession of the good, and shall receive condign punishment: for God did kindly bestow on them what was good; but they themselves did not diligently keep it, nor deem it something precious, but poured contempt upon His super-eminent goodness. Rejecting therefore the good, and as it were spuing [sic] it out, they shall all deservedly incur the just judgment of God, which also the Apostle Paul testifies in his Epistle to the Romans, where he says, 'But dost thou despise the riches of His goodness, and patience, and long-suffering, being ignorant that the goodness of God leadeth thee to repentance? But according to thy hardness and impenitent heart, thou treasurest to thyself wrath against the day of wrath, and the revelation of the righteous judgment of God.' 'But glory and honour,' he says, 'to every one that doeth good.' God therefore has given that which is good, as the apostle tells us in this Epistle, and they who work it shall receive glory and honour, because they have done that which is good when they had it in their power not to do it; but those who do it not shall receive the just judgment of God, because they did not work good when they had it in their power so to do."
See Adversus Haereses IV.37.1