President Trump used President Obama to make a point on the immigration issue Tuesday, as he tweeted a video of the former president talking about stopping illegal immigration.

“I agree with President Obama 100%” Trump wrote above a clip of then-Illinois Sen. Obama giving a speech in 2005 that contained some tough-sounding talk on immigration.

“We are a generous and welcoming people here in the US, but those who enter the country illegally, and those who employ them, disrespect the rule of law and they are showing disregard for those who are following the law,” Obama says in the tweeted clip.

“We simply cannot allow people to pour into the US undetected, undocumented, unchecked and circumventing the line of people who are waiting patiently, diligently and lawfully to become immigrants in this country,” he continues.

A longer version of the same clip posted on C-SPAN shows Obama saying that “securing the border alone” is not enough — as he advocates for the “Secure America and Orderly Immigration Act,” a landmark immigration bill proposed by Senators John McCain and Ted Kennedy.

The bill was never voted on in the Senate.