Jesus lived a perfect life. That much is obvious. Every command of God Jesus kept perfectly every second He was on earth. And He did this through the power of The Holy Spirit. Jesus Himself testified, “The Spirit of the Lord is upon me” as it was prophesied in Isaiah 61:1. The Father told us this as well, saying, “Behold my servant, whom I uphold; Mine elect, in whom My soul delighteth; I have put My Spirit upon Him…” [Isa 42:1] and again in Isaiah 11:2, saying, “The Spirit of The LORD shall rest upon Him…”
Taking this fact, that Jesus was filled with The Holy Spirit, look at just one of the qualities of His fruit, which is “joy.” If Jesus truly never sinned, then He truly never experienced a moment without joy. For, along with being one of the Holy Spirit’s attributes, it is also commanded, “Rejoice in the Lord alway: and again I say, Rejoice.”
And now, consider a passage from Hebrews, which quotes Psalm 45. The writer of Hebrews applies this to Jesus, quoting,
"Thou hast loved righteousness, and hated iniquity; therefore God, even Thy God, hath anointed thee with the oil of gladness above Thy fellows." [Heb 1:9, Psa 45:7]
Jesus’ extreme level of joy; joy so great that, “for the joy that was set before Him [He] endured the cross,” was, in part, upon Him because He loved righteousness and hated iniquity.
When we love righteousness and hate evil, God anoints us with the oil of gladness. Joy/gladness, in large part, comes from a hatred of evil and a love of righteousness. So we must strive to, day by day, hate sin more and love righteousness. Love purity, love holiness, love righteousness. If we do that, we can experience joy like Jesus did; joy so intense that we take up our crosses just like Jesus did, dying to self and living for Him.
Along with that, Proverbs tells us that when righteousness is ruling in our lives there is joy, there is rejoicing. But when wickedness is ruling, there is mourning.
"When the righteous are in authority, the people rejoice: but when the wicked beareth rule, the people mourn." [Prov 29:2]
You can apply that in your personal life as well. If you are overcome with sin and bondage (“for of whom a man is overcome, of the same is he brought in bondage.” [2 Pe 2:19]), then there is going to be sorrow. But if we love righteousness and submit to Christ and “yield [our] members servants to righteousness unto holiness” then there will be more joy.
So that we are anointed with joy as Jesus was, let us strive to “hate the evil, and love the good” [Amo 5:15] Because “the fear of The LORD is to hate evil” and when we do that we will experience more joy!