Jesus knew that Judas was doing to betray him and that Peter would deny him; yet he faithfully served his disciples and commanded them to do the same for others.
Joy is found in God Alone. God causes the Israelites to have joy and commit themselves to joyous praise. He teaches them where to locate their joy and how to have joy that isn’t based on feelings or circumstances but based on an everlasting relationship with Him.