A federal judge was filmed at a citizenship ceremony saying that people 'need' to leave the United States if they don't like the fact the next president will be Donald Trump.

Judge John Primomo made the remark when he presided over the ceremony at the Institute of Texan Cultures in San Antonio, Texas, on Thursday, KENS reports.

Primomo said: 'I can assure you that whether you voted for him or you did not vote for him, if you are a citizen of the United State, he is your president.

'He will be your president and if you do not like that, you need to go to another country.'

Scroll down for video

Judge John Primomo (second from right) was filmed at citizenship ceremony saying that people 'need' to leave the United States if they don't like the fact the next president will be Donald Trump

According to KENS, Primomo also talked Thursday about NFL players kneeling during the national anthem.

He reportedly said: 'I detest that, because you can protest things that happen in this country; you have every right to.

'You don't do that by offending national symbols like the national anthem and the flag of the United States.'

Primomo (seen in a Facebook photo) said of Trump: 'He will be your president and if you do not like that, you need to go to another country'

President-elect Donald Trump is pictured on Saturday

Primomo's words were supposed to be unifying, the judge told the TV station.

The federal judge also told KENS that he did not vote for the Republican and former reality show star.