So Judas threw the money into the temple and left. Then he went away and hanged himself.
References for Matthew 27:5
The chief priests picked up the coins and said, “It is against the law to put this into the treasury, since it is blood money.”
So they decided to use the money to buy the potter’s field as a burial place for foreigners.