The Gospel of Matthew states that Judas felt guilty that he helped kill Jesus. He tried to give the money back to the priests, but they said it was illegal. So Judas threw the money into the temple, and then hanged himself. Then the priests used the money to buy a graveyard for strangers.