President Trump said Friday that the decision by the Justice Department not to prosecute fired FBI Director James Comey for leaking memos showed fairness on the part of Attorney General William Barr.

“The fact that James Comey was not prosecuted for the absolutely horrible things he did just shows how fair and reasonable Attorney General Bill Barr is,” the president said in a tweet.

“So many people and experts that I have watched and read would have taken an entirely different course. Comey got Lucky!” he added.

The DOJ’s Office of Inspector General said in a report released Thursday that the department had decided not to prosecute the former top G-man for retaining memos about his conversations with Trump and for disclosing one such memo to the media through a friend.

But in his report, Inspector General Michael Horowitz sharply criticized Barr — who was cleared of leaking classified information — for violating FBI and Justice Department policies “by not safeguarding sensitive information obtained during the course of his FBI employment.”

The president on Friday also said “the disastrous IG Report on James Comey shows, in the strongest of terms, how unfairly I, and tens of millions of great people who support me, were treated.”

He tweeted that “our rights and liberties were illegally stripped away by this dishonest fool. We should be given our stolen time back?”

Comey vigorously defended himself after the report’s release on Thursday.

“I don’t need a public apology from those who defamed me, but a quick message with a ‘sorry we lied about you’ would be nice,” he wrote, adding, “And to all those who’ve spent two years talking about me ‘going to jail’ or being a ‘liar and a leaker’—ask yourselves why you still trust people who gave you bad info for so long, including the president.”

Barr has incurred the wrath of Democrats and other Trump critics over his handling of special counsel Robert Mueller’s report on the probe into Russian interference in the 2016 presidential election.