Second, it appeared as an instruction to the human race, because before the coming of Christ, the world languished in ignorance and heresy: the people who walked in darkness have seen a great light (Isa 9:2). Hence he says, instructing us, as a father instructs his son.
But he instructs us about two things, because all men are in need of two things, namely, good works and a right intention. First, he shows how Christ instructed us in regard to good works; second, in regard to a right intention, at looking for the blessed hope.
He says, therefore: denying ungodliness and worldly desires. But ...notice that he says, ungodliness and worldly desires, because all sins are involved either with matters directly against God, and are therefore sins of ungodliness: for godliness, or piety, is a virtue which inclines us to show proper respect toward parents and fatherland. But because God is our principle Father, godliness consists in paying worship to God. Behold the fear of the Lord, that is wisdom (Job 28:28), but another version reads behold godliness, that is wisdom. Consequently, sins against God are called acts of ungodliness: for the wrath of God is revealed from heaven against all ungodliness (Rom 1:18), where ungodliness refers to idolatry.
Or sins consist in misusing temporal things, and these sins are worldly desires. But a world is a span of time that measures how long things exist. Hence by worldly is meant secular things and all sins committed against our neighbor, or against things by misusing them.
Then when he says, live soberly, he indicates what good we should do. And he says, soberly, in relation to ourselves; justly, in relation to our neighbor; and godly in relation to God.
He says, soberly, i.e., with due measure; but a limit is a measure, and this limit is observed if a man uses external goods and controls his passions with the limits set by reason. Hence, soberness means any moderate use of external things or of one's passions: righteousness teaches self-control and prudence, justice and courage; nothing in life is more profitable for men than these (Wis 8:7).
He says, justly, in dealings with one's neighbor; for the Lord is righteous, he loves righteous deeds (Ps 11:7).
And godly in one's dealings with God: train yourself in godliness (1 Tim 4:7).
Source: Commentary on Titus