Two views of Jesus went out of the city to Bethany and lodged there:
He likely spent the night in Bethany with his loved ones: Martha, Mary, and Lazarus (see John 11:1)
Jesus found no place to rest in his own royal city, so he went to stay overnight in Bethany, for Jerusalem was crowded with all the pilgrims. Thus he found some rest during the week of his suffering
Interpretation 1:
Jesus quite possibly spent the night in Bethany with his loved ones: Martha, Mary, and Lazarus (see John 11:1).1
Interpretation 2:
Jesus, the Son of David, shockingly finds no place to rest in his own royal city2. As such the Saviour went out to stay overnight in Bethany, while Jerusalem was undoubtedly overcrowded with all the pilgrims, thereby finding some rest during the week of his suffering.3
17 And leaving them, he went out of the city to Bethany and lodged there.