Donald TrumpDonald John TrumpTrump says he doesn't want to use 'adversary' to describe Russia Comey urges Americans to vote for Democrats in midterms Roby wins Alabama GOP runoff, overcoming blowback from Trump criticism MORE is distancing himself from the suggestion that he wants to create a database to track Muslims in the U.S.

In a tweet on Friday, he said the idea came from a reporter.

Trump refused to rule out a database and special IDs for Muslims in an interview with Yahoo! on Thursday.

“Certain things will be done that we never thought would happen in this country in terms of information and learning about the enemy,” he said when asked if he would implement the programs.

After he was asked about the comment later that evening by an NBC News reporter, Trump said he would “certainly implement” a database to track Muslims in the U.S.

When asked whether Muslims would be legally required to sign up for the database, he said, “They have to be. They have to be.”

The GOP primary front-runner has been widely criticized for the controversial comments that come after the terrorist attack in Paris last week.

Fellow Republican presidential candidates Jeb Bush and Sen. Ted Cruz (R-Texas) have refused to back the plans.

Democratic primary front-runner Hillary ClintonHillary Diane Rodham ClintonOvernight Defense: Trump tries to quell Russia furor | GOP looks to reassure NATO | Mattis open to meeting Russian counterpart Dem pollster: GOP women have a more difficult time winning primary races than Dems Mellman: (Mis)interpreting elections MORE said Trump’s rhetoric on Muslims is “shocking," while rival Bernie SandersBernard (Bernie) SandersMellman: (Mis)interpreting elections Dems to propose legislation to prevent ICE from shackling pregnant women Rasmussen poll: Nearly three-quarters of Dems want 'fresh face' as nominee in 2020 MORE called it "outrageous and bigoted."

-Updated at 4:26 p.m.