(CNN) Former President Barack Obama made a thinly veiled jab at President Donald Trump on Friday evening, saying it was wrong to use a position of power for attacking others as "enemies of the people and then suddenly pretending that you're concerned about civility."

"I would like to think that everybody in America would think it's wrong to spend all your time from a position of power vilifying people, questioning their patriotism, calling them enemies of the people and then suddenly pretending that you're concerned about civility," he told a cheering crowd.

Trump has repeatedly called the media "fake news" and "the enemy of the people." Following the discovery of multiple packages sent to people whom the President has spoken against as political enemies, as well as a suspicious package in CNN's New York bureau at the Time Warner Center on Wednesday, Trump tweeted Thursday that "a very big part of the Anger we see today in our society is caused by the purposely false and inaccurate reporting of the Mainstream Media that I refer to as Fake News."

Obama said Friday, "It shouldn't be Democratic or Republican to say you don't try to punish political opponents or threaten the freedom of the press just because you don't like what they say."

Obama was in Michigan campaigning for Democratic Sen. Debbie Stabenow and Democratic gubernatorial candidate Gretchen Whitmer. He urged attendees to consider political events of the recent past, including Republicans' attempts to dismantle the Affordable Care Act and a voting record that contradicts recent claims that the GOP has always protected individuals with pre-existing conditions

Read More