Some thought that because Judas had the money box, Jesus was saying to him, “Buy what things we need for the feast,” or that he should give something to the poor.
The one who steals must no longer steal, but rather must work, producing with their hands something that is good, so that they may have something to give to those in need.
It was just before the feast of the Passover. Jesus, knowing that the time had come when he would depart from this world to the Father. Having loved his own who were in the world, he loved them to the end.