In a phone call from the White House late last month, U.S. President Donald Trump heaped praise on Philippine President Rodrigo Duterte, one of the world’s most murderous heads of state, for doing what Trump called an “unbelievable job” in his war on drugs. Trump offered an unqualified endorsement of Duterte’s bloody extermination campaign against suspected drug dealers and users, which has included open calls for extrajudicial murders and promises of pardons and immunity for the killers.

“You are a good man,” Trump told Duterte, according to an official transcript of the April 29 call produced by the Philippine Department of Foreign Affairs and obtained by The Intercept. “Keep up the good work,” Trump told Duterte. “You are doing an amazing job.”

Trump began the call by telling Duterte, “You don’t sleep much, you’re just like me,” before quickly pivoting to the strongman’s drug war.

“I just wanted to congratulate you because I am hearing of the unbelievable job on the drug problem,” Trump told Duterte at the beginning of their call, according to the document. “Many countries have the problem, we have a problem, but what a great job you are doing and I just wanted to call and tell you that.”

“Thank you Mr. President,” replied Duterte. “This is the scourge of my nation now and I have to do something to preserve the Filipino nation.”

The transcript, which contains numerous typographical errors, was authenticated by well-placed sources in the Palace and the Department of Foreign Affairs by reporters at the Manila-based news outlet Rappler, which collaborated with The Intercept on this story.

Since Duterte took office in June, Philippine national police and vigilante death squads have embarked on a campaign to slaughter drug users as well as drug dealers. “Hitler massacred three million Jews [sic], now, there’s three million drug addicts. I’d be happy to slaughter them,” he said in September. Last month, he told a group of jobless Filipinos that they should “kill all the drug addicts.” Police have killed over 7,000 people, devastated poor areas of Manila and other cities, and used the drug war as a pretext to murder government officials and community leaders.

The new details of Trump’s call with Duterte come on the heels of the Philippine president’s announcement that he is imposing martial law on the autonomous island of Mindanao, where government forces are battling Islamist rebels. “If I had to kill thousands of people just to keep Philippines a thousand times safer, I will not have doubts doing it,” Duterte said.

On the April 29 call, Trump pointed out to Duterte that his predecessor in the White House had been critical of the rising body count under Duterte’s reign in the Philippines, but that Trump himself gets it. “I understand that, and fully understand that, and I think we had a previous president who did not understand that,” Trump said, “but I understand that and we have spoken about this before.”

When the Obama administration offered some tempered criticism of Duterte’s killing spree, Duterte called the U.S. president the “son of a whore” and an “idiot” who “can go to hell.” Speaking in Beijing in October, Duterte said, “America has lost now. I’ve realigned myself in your ideological flow. And maybe I will also go to Russia to talk to Putin and tell him that there are three of us against the world: China, Philippines and Russia. It’s the only way.”

However, in the wake of Trump’s election, Duterte said, “I don’t want to quarrel anymore, because Trump has won.” On the April call, Trump addressed Duterte warmly by his first name, Rodrigo, and Duterte thanked Trump for his sentiments on Obama.

This week, Duterte was slated to be in Russia for a five-day trip, including a meeting with President Vladimir Putin, whom he has called his “favorite hero.” On Tuesday, Duterte announced from Moscow that he was cutting the trip short in light of his declaration of martial law and fighting between rebels and the government in Mindanao.

Following the call last month, the White House publicly described a “very friendly conversation” that culminated with an invitation for an Oval Office meeting. “To endorse Duterte is to endorse a man who advocates mass murder and who has admitted to killing people himself,” said John Sifton, the Asia advocacy director for Human Rights Watch, reacting to the transcript. “Endorsing his methods is a celebration of the death of the poor and vulnerable.”