John 13:1-17
Jesus teaches self-denial to His disciples not only with His words but also by His actions. Notice that His call to self-denial comes immediately after predicting His own sacrificial death. He is the supreme model of the self-denial to which He calls others. He even denies Himself any urge to avenge Himself or to threaten His persecutors for what they had done to Him. In Jesus' example, we see that, by committing ourselves to God who judges rightly, we deny ourselves the temptation of worldly lusts.
Martin G. Collins
Overcoming (Part 5): Self-Denial

During the evening of Nisan 14 Jesus and His disciples ate the Passover. After the meal Jesus washed His disciples' feet and introduced the symbols of bread and wine. His call to self-denial follows His prediction of sacrificial death and He serves as the supreme model by denying any urge to avenge Himself. At the end of His method of teaching by God in the flesh He revealed a major extent of His love by sacrificing His life for those following to the last and highest degree possible. He was going to leave the earth to go to heaven to be back with the Father.