When Judas, the one who'd betrayed Jesus, saw that Jesus had been condemned to death, he regretted what he'd done and returned the thirty silver coins to the chief priests and the elders.
If the ox uses its horns and kills a male or female slave, the owner of the ox must pay thirty shekels of silver to the slave's master, and the ox must be stoned to death.
And the Lord said to me, “Throw the money to the treasury,” this measly sum they thought I was worth! So I took the thirty pieces of silver and threw it into the treasury of the Lord's Temple.
After dipping the piece of bread, he gave it to Judas, son of Simon Iscariot. Once Judas had taken the bread, Satan entered him. “What you're going to do, do it quickly,” Jesus told him.
So Judas took with him a troop of soldiers together with guards from the chief priests and the Pharisees. They arrived there carrying torches, lanterns, and weapons.
The kind of sorrow God wants us to have makes us change our minds and brings salvation. This kind of sorrow leaves no sense of regret, but worldly sorrow brings death.