John 13:29

29 Since Judas had charge of the money, some thought Jesus was telling him to buy what was needed for the festival, or to give something to the poor.

Read John 13:29 Using Other Translations

For some of them thought, because Judas had the bag, that Jesus had said unto him, Buy those things that we have need of against the feast; or, that he should give something to the poor.
Some thought that, because Judas had the moneybag, Jesus was telling him, "Buy what we need for the feast," or that he should give something to the poor.
Since Judas was their treasurer, some thought Jesus was telling him to go and pay for the food or to give some money to the poor.