Senator Robert Menendez wasted no time in sending a warning shot to his political adversaries after being freed — for now — from bribery charges.

“To those of you who were digging my political grave so you could jump into my seat, I know who you are and I won’t forget you,” the senior senator said outside of Newark federal court on Thursday.

“I’ve made my share of mistakes but my mistakes were never a crime,” he said.

Menendez made the comments after Newark federal judge William Walls declared a mistrial because the jury said it remained hopelessly deadlocked following four days of deliberations.

“I find you are unable to reach a verdict and that further deliberations are futile,” Judge William Walls said shortly before 1 pm on Thursday. “There is no alternative but to declare a mistrial,” he said before dismissing the jurors after more than two months of service.

A mistrial means the Garden State democrat avoids both prison and the prospect of losing his senate seat — for now.

The Department of Justice could still retry the case, although a spokesman for the Washington, DC, office handling the case declined to comment on their plans.

“The Department of Justice appreciates the jury’s service in this lengthy trial,” a spokesman said in an emailed statement. “The Department will carefully consider next steps in this important matter and report to the Court at the appropriate time.”