And he left them, and went out of the city into Bethany; and he lodged there.
Matthew 21:17 belongs to the closing events of Christ's final visit to Jerusalem at the time of His triumphal entry and riding into the city, in the account that includes the barren fig tree. The triumphal reception foreshadowed His coming in glory, while the triumphal entry, the cleansing of the desecrated temple courts, and the judgment on the barren fig tree pointed to Jerusalem's doom. The chapter teaches that the fruitless, pretentious fig tree represents people who profess to serve God and belong to the church but bear no fruit in their lives to God's glory. After cleansing the temple courts of their desecration and healing the sick there, which was His final appeal to Jerusalem, Jesus left the temple and the city with His disciples and went to Bethany, where He lodged. As He left He looked upon the temple and the city with sorrow and tears, which were a final appeal of love and compassion that Jerusalem rejected. After He left, when the people sought Him to make Him king, He was no longer there. The next morning He returned from Bethany to the city, beginning the events involving the fig tree. Rejection of Christ would bring judgment on Jerusalem and, ultimately, destruction on those guilty of His death.
In the evening after His Monday work in Jerusalem He went out of the city to Bethany and lodged there. That departure came after the public honors of His entry into Jerusalem and His action in cleansing the temple and healing people there. At that same time the chief priests and scribes were grieved by His works and by the children's praise. The verse belongs to the account of Jesus' final week and to the closing events of His ministry in Jerusalem. Its chapter records together His entry into the city, the cleansing of the temple, the fig-tree lesson, and several parables. The triumphal entry and lament over the city are also recorded in Mark 11 and John 12 as parallel accounts, with Luke 19 giving the fullest account of the same scene. The events of Matthew 21:1-17 fulfill Zechariah's prophecy of the coming King, who arrives lowly on a donkey as a Prince of peace rather than on a horse as a hero of war and display. The chapter shows Christ longing for fruit from His own people. The rulers rejected Jesus, and the multitude's faith weakened when He did not meet their expectations. The triumphal entry, the cleansing of the desecrated temple, and the judgment on the barren fig tree pointed to Jerusalem's doom, and Christ's tears as He looked over the city were a final appeal of love and compassion that Jerusalem rejected. The temple had to be cleansed before He would dwell in it, which teaches that God's temple within a person must be kept from defilement.