President Donald Trump visits a new section of the border wall with Mexico in Calexico, Calif., Friday April 5, 2019. (AP Photo/Jacquelyn Martin)
PHOTO: Jacquelyn Martin/AP
President Donald Trump visits a new section of the border wall with Mexico in Calexico, Calif., Friday April 5, 2019. (AP Photo/Jacquelyn Martin)
Now playing
03:02
Trump told CBP head he'd pardon him if sent to jail
Adam Kinzinger Zeleny dnt 03082021
PHOTO: CNN
Adam Kinzinger Zeleny dnt 03082021
Now playing
04:25
'Could be a kamikaze mission': GOP lawmaker takes on Trump
PHOTO: CNN
Now playing
03:09
Governor on relief bill: Why reward states for bad behavior?
PHOTO: CNN
Now playing
03:02
'A ransom demand': Avlon slams Trump's letter to RNC
PHOTO: CNN
Now playing
01:26
Sen. Joe Manchin explains why he wanted changes to relief bill
Now playing
02:29
MS gov. encourages residents to wear masks despite dropping mandate
Now playing
01:21
Lawmaker fires back at Tucker Carlson's QAnon spin
Sen. Lisa Murkowski (R-AK) asks a question at a hearing of the Senate Health, Education, Labor and Pensions Committee on September 23, 2020 in Washington, DC.
PHOTO: Alex Edelman/Pool/Getty Images
Sen. Lisa Murkowski (R-AK) asks a question at a hearing of the Senate Health, Education, Labor and Pensions Committee on September 23, 2020 in Washington, DC.
Now playing
01:40
Trump plans to campaign against Sen. Murkowski in 2022
Biden 03062021
PHOTO: CNN
Biden 03062021
Now playing
02:28
'Help is on the way': Biden speaks after Senate passes relief plan
Now playing
03:04
Schumer: Nobody said it would be easy, but it is done
01 senate stimulus bill 210306
PHOTO: Senate TV
01 senate stimulus bill 210306
Now playing
01:47
Senate passes Biden's $1.9 trillion Covid-19 relief bill
WASHINGTON, DC - MARCH 05: Sen. John Cornyn (R) (R-TX) talks with Sen. Joe Manchin (D-WV) while walking to the U.S. Senate chamber for a vote March 05, 2021 in Washington, DC. The Senate continues to debate the latest COVID-19 relief bill.  (Photo by Win McNamee/Getty Images)
PHOTO: Win McNamee/Getty Images
WASHINGTON, DC - MARCH 05: Sen. John Cornyn (R) (R-TX) talks with Sen. Joe Manchin (D-WV) while walking to the U.S. Senate chamber for a vote March 05, 2021 in Washington, DC. The Senate continues to debate the latest COVID-19 relief bill. (Photo by Win McNamee/Getty Images)
Now playing
02:54
Axelrod breaks down Manchin's surprising move
sinema
PHOTO: CNN
sinema
Now playing
01:50
Senator's move has many on the internet outraged
PHOTO: FBI
Now playing
02:58
Trump State Department official charged in Capitol riot
WASHINGTON, DC - JANUARY 06: U.S. Sen. Paul Gosar (R-AZ) speaks on the floor of the House Chamber during a joint session of congress on January 06, 2021 in Washington, DC. Congress held a joint session today to ratify President-elect Joe Biden's 306-232 Electoral College win over President Donald Trump. A group of Republican senators said they would reject the Electoral College votes of several states unless Congress appointed a commission to audit the election results. (Photo by Drew Angerer/Getty Images)
PHOTO: Drew Angerer/Getty Images
WASHINGTON, DC - JANUARY 06: U.S. Sen. Paul Gosar (R-AZ) speaks on the floor of the House Chamber during a joint session of congress on January 06, 2021 in Washington, DC. Congress held a joint session today to ratify President-elect Joe Biden's 306-232 Electoral College win over President Donald Trump. A group of Republican senators said they would reject the Electoral College votes of several states unless Congress appointed a commission to audit the election results. (Photo by Drew Angerer/Getty Images)
Now playing
02:19
This is what Rep. Gosar was posting days before Capitol riot
John King Magic Wall 0305
PHOTO: CNN
John King Magic Wall 0305
Now playing
02:17
President Biden sending a team to the US-Mexico border
(CNN) —  

President Donald Trump told Customs and Border Protection Commissioner Kevin McAleenan he would grant McAleenan a pardon if he were sent to jail for having border agents block asylum seekers from entering the US in defiance of US law, senior administration officials tell CNN.

Trump reportedly made the comment during a visit to the border at Calexico, California, a week ago. It was not clear if the comment was a joke.

Two officials briefed on the exchange say the President told McAleenan, since named the acting secretary of the Department of Homeland Security, that he “would pardon him if he ever went to jail for denying US entry to migrants,” as one of the officials paraphrased.

The White House referred CNN to the Department of Homeland Security. A DHS spokesman told CNN, “At no time has the President indicated, asked, directed or pressured the Acting Secretary to do anything illegal. Nor would the Acting Secretary take actions that are not in accordance with our responsibility to enforce the law.”

Trump denied reports he offered pardons in a tweet late Friday night.

The exchange came amid threats by the President to close the border in response to a steep uptick of migrants at the border. In March, there were approximately 92,000 arrests of undocumented migrants for illegal entry on the southern border, up from 37,390 last March, according to CBP.

During his visit to Calexico last Friday, Trump said on camera: “We’re full, our system’s full, our country’s full – can’t come in! Our country is full, what can you do? We can’t handle any more, our country is full. Can’t come in, I’m sorry. It’s very simple.”

Behind the scenes, two sources told CNN, the President told border agents to not let migrants in. Tell them we don’t have the capacity, he said. If judges give you trouble, say, “Sorry, judge, I can’t do it. We don’t have the room.”

RELATED: Trump pushed to close El Paso border, told admin officials to resume family separations and agents not to admit migrants

After the President left the room, agents sought further advice from their leaders, who told them they were not giving them that direction and if they did what the President said they would take on personal liability. You have to follow the law, they were told.

Trump has grown frustrated by the number of migrants apprehended at the southern border, placing blame on Democrats and the nation’s immigration laws. On Friday, the President said he’s considering releasing immigrants into so-called sanctuary cities in part to retaliate against Democrats, undercutting earlier denials from his own administration officials.

“Due to the fact that Democrats are unwilling to change our very dangerous immigration laws, we are indeed, as reported, giving strong considerations to placing Illegal Immigrants in Sanctuary Cities only,” Trump said on Twitter. “The Radical Left always seems to have an Open Borders, Open Arms policy – so this should make them very happy!”

Yet the White House received legal guidance months ago that such a policy would run afoul of the law, open the administration to lawsuits, and ultimately undermine the President’s desire to deport undocumented immigrants.

In February, according to documents obtained by CNN, the general counsel for the Department of Homeland Security, John Mitnick, told the White House in writing that such a move could only be done if there was a “strong, mission-related rationale” pertaining to the responsibilities of the department.

CNN’s Priscilla Alvarez contributed to this report.