Delivering his last annual sermon to Washington's elite, President Barack Obama on Thursday warned of the corrosive impact of fear in public life and urged a bipartisan group of powerbrokers to abide by their faith "even when no one is watching."

"Fear does funny things. Fear can lead us to lash out against those who are different. Or lead us to try to get some sinister other under control," Obama said at the annual National Prayer Breakfast. "Faith is the great cure for fear. Jesus is a good cure for fear."

Obama spoke a day after making his first visit as president to an American mosque—a trip he said he made to tell Muslims "they, too, are Americans and are welcome here."

His remarks come amid of a campaign-season debate over curbing immigration, preventing terrorism and whether the U.S. will continue to open its doors to people of all faiths. Some Republican candidates and lawmakers want to stem the flow of refugees from Syria or block all Muslims from entering the U.S. in an effort to deter Islamic extremists. Obama says such proposals would violate American values.

In keeping with the tradition at the annual gathering, the president did not directly mention the political scene.

Obama also preached about his personal fears, saying that "the main one I'm feeling right now is that our children grow up too fast." He said his faith has helped him overcome the "unique elements" of his job. The president urged those in the audience to practice their faith out of limelight and "to seek the best in each other and not assume the worst—and not just at the National Prayer Breakfast."

An event that stretches back to the Eisenhower era, the prayer breakfast is often seen as a chance for politicians to press pause on the debate of the day and gather in fellowship and reflection.

It has not always lived up to that billing.

In 2013, keynote speaker Ben Carson, then a neurosurgeon and now a Republican candidate for president, drew attention for complaining about tax laws and offering suggestions for health care changes. Carson's speech raised his profile with conservatives and helped launch his current White House bid.

Carson, who has stepped away from campaigning after coming in fourth in Monday's Iowa caucuses, was in the audience Thursday.

House Speaker Paul Ryan also veered into political territory with welcoming remarks that referenced the debate over gun control. The speaker noted what he described as "growing impatience" with prayer. He seemed to reference criticism of politicians who offer "thoughts and prayers" to victims of mass shootings but oppose tightening gun laws.

The hashtag #thoughtsandprayers was adopted after the San Bernadino shootings by those frustrated with prayerful sentiments offered by gun-rights supporters in Congress. Obama, too, has said "our thoughts and prayers are not enough."

"The attitude in some quarters these days is, 'Don't just pray; do something about it,'" Ryan said. "The thing is, when you are praying, you are doing something about it. You are revealing the presence of God."

Copyright 2016 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.

Comments are automatically closed two weeks after an article's initial publication. See our comments policy for more.

The latest from america

A woman in Toronto receives the Moderna COVID-19 vaccine at the Toronto and Region Islamic Congregation center April 1, 2021. (CNS photo/Carlos Osorio, Reuters)
Canadians have embraced coronavirus vaccination in large numbers and are feeling a deepening exasperation with the unvaccinated.
David AgrenNovember 30, 2021
As Dorothy Day's cause for canonization moves forward, her writings continue to offer a prophetic Christian witness to a complacent world.
James T. KeaneNovember 30, 2021
Revs. Brian Strassburger and Louie Hotop have started a podcast documenting their ministry in the Rio Grande Valley along the U.S.-Mexico border. The aim of the podcast is to explore immigration through a lens of Catholic social teaching.
The Indiana Court of Appeals ruled Nov. 23 that an Indiana trial court “committed reversible error” when it dismissed a former teacher’s lawsuit against the Archdiocese of Indianapolis earlier this year.