Throw oneself at/on the mercy of the court

To plead for mercy from a judge in a courtroom.

The man who robbed the bank decided to throw himself at the mercy of the court.