2 Timothy 2:11-13 is simply a restatement of those precepts:
NASB, 2 Timothy 2:11-13 - ["Wise"] 11 It is a trustworthy statement: For if we died with Him, we will also live with Him; ["Just"] 12 If we endure, we will also reign with Him; If we deny Him, He also will deny us; ["True"] 13 If we are faithless, He remains faithful, for He cannot deny [contradict] Himself.
Note 1: If God is "True" then as "truth" God cannot contradict himself, any more than a logical syllogism/truth could contradict itself.
Note 2: The qualification: "if we died with Him"
- is an appeal to the imitation of Christ, (Christianity), which is: the unconditional advocacy for life and mercy - and the forfeiture of any "right" to condemn.