17 Only in freedom can man direct himself toward goodness. Our contemporaries make much of this freedom and pursue it eagerly; and rightly to be sure. Often however they foster it perversely as a license for doing whatever pleases them, even if it is evil. For its part, authentic freedom is an exceptional sign of the divine image within man. For God has willed that man remain "under the control of his own decisions," so that he can seek his Creator spontaneously, and come freely to utter and blissful perfection through loyalty to Him. Hence man's dignity demands that he act according to a knowing and free choice that is personally motivated and prompted from within, not under blind internal impulse nor by mere external pressure. Man achieves such dignity when, emancipating himself from all captivity to passion, he pursues his goal in a spontaneous choice of what is good, and procures for himself through effective and skilful action, apt helps to that end. Since man's freedom has been damaged by sin, only by the aid of God's grace can he bring such a relationship with God into full flower. Before the judgement seat of God each man must render an account of his own life, whether he has done good or evil.
Source: Gaudium et Spes (Vatican.va)