No one at the table knew why Jesus said this to him.
Then, after Judas took the piece of bread, Satan entered him. So Jesus told him, “Hurry! Do what you have to do.”
Judas had the moneybag. So some thought that Jesus was telling him to buy what they needed for the festival or to give something to the poor.