Obama Throws Shade At Trump: 'We Can't Hide Behind The Wall'

Former President Barack Obama subtly knocked his successor, President Donald Trump on Thursday, while explaining the importance of taking in refugees and immigrants in need.

“In the eyes of God, a child on the other side of the border is no less worthy of love and compassion than my own child,” he said in Berlin during a conversation with German Chancellor Angela Merkel.

Explaining the importance of humanitarian aid, Obama said that, “we have to recognize that everything that happens on the other side of the world affects us as well.... if there’s conflict, if there’s war, if there’s poverty, we can’t isolate ourselves, we can’t hide behind the wall.”

Trump has taken on a decidedly more isolationist stance on immigration, banning Syrian refugees and visitors from other predominately Muslim countries and vowing to build a wall on the Mexican border. He also borrowed a slogan from World War II-era Nazi sympathizers as an official tagline for his presidency: America First.

Other topics that that came up at Thursday’s event were defense spending, religion, and education― all issues that Trump and Obama tend to disagree on.

Contending that poor education policies breed inequality, Obama said that, “no county will be successful if it leaves half of its children... uneducated and on the sidelines. We have to think of them as all of our children. If Malia and Sasha are doing well but the majority of their peers are not, that’s gonna affect their lives in some damaging way.”

“The good news is that we know what to do, the bad news is that we haven’t convinced everybody of the necessity of doing it,” he added.

Obama is extremely popular in Germany, and his appearance was greeted with a massive crowd and repeated applause. Trump, on the other hand, has clashed with Merkel on many key issues and has a negative approval rating among Germans. Merkel was due to meet with Trump at a NATO summit later on Thursday.

Also on HuffPost

U.S. President Barack Obama kisses German Chancellor Angela Merkel as members of the Group of 20 prepare for the traditional family photo during the G20 leaders summit in the Mediterranean resort city of Antalya, Turkey, on Nov. 15, 2015.
U.S. President Barack Obama kisses German Chancellor Angela Merkel as members of the Group of 20 prepare for the traditional family photo during the G20 leaders summit in the Mediterranean resort city of Antalya, Turkey, on Nov. 15, 2015.
Merkel (L) chats with Obama during the opening ceremony of the G20 Leaders Summit on Sept. 4 in Hangzhou, China.
Merkel (L) chats with Obama during the opening ceremony of the G20 Leaders Summit on Sept. 4 in Hangzhou, China.
Obama and German Merkel visit the IFM electronics stand at the Hannover Messe industrial trade fair on April 25 in Hanover, Germany.
Obama and German Merkel visit the IFM electronics stand at the Hannover Messe industrial trade fair on April 25 in Hanover, Germany.
Obama and Merkel tour Dresden's landmark, the Frauenkirche (Church of Our Lady) on June 5, 2009, in Dresden, Germany.
Obama and Merkel tour Dresden's landmark, the Frauenkirche (Church of Our Lady) on June 5, 2009, in Dresden, Germany.
Merkel speaks with Obama outside the Elmau castle in Kruen near Garmisch-Partenkirchen, Germany, on June 8, 2015.
Merkel speaks with Obama outside the Elmau castle in Kruen near Garmisch-Partenkirchen, Germany, on June 8, 2015.
Merkel and Obama take part in a tree-planting ceremony on the grounds of the Ise-Jingu Shrine in the city of Ise, in Mie prefecture on May 26 on the first day of the G7 leaders summit.
Merkel and Obama take part in a tree-planting ceremony on the grounds of the Ise-Jingu Shrine in the city of Ise, in Mie prefecture on May 26 on the first day of the G7 leaders summit.
Merkel and Obama chat during the Outreach group photo on the second day of the summit of G7 nations at Schloss Elmau on June 8, 2015, near Garmisch-Partenkirchen, Germany.
Merkel and Obama chat during the Outreach group photo on the second day of the summit of G7 nations at Schloss Elmau on June 8, 2015, near Garmisch-Partenkirchen, Germany.
Merkel speaks with Obama during the opening ceremony of the G20 Leaders Summit at the Hangzhou International Expo Center on Sept. 4 in Hangzhou, China.
Merkel speaks with Obama during the opening ceremony of the G20 Leaders Summit at the Hangzhou International Expo Center on Sept. 4 in Hangzhou, China.
Obama and Merkel share a laugh as they tour the Hanover Industrial Fair in Hanover, central Germany, on April 25.
Obama and Merkel share a laugh as they tour the Hanover Industrial Fair in Hanover, central Germany, on April 25.
Obama, Merkel, and other world leaders pose for a family photo at the G20 summit in Hangzhou, China.
Obama, Merkel, and other world leaders pose for a family photo at the G20 summit in Hangzhou, China.
Obama and Merkel on the Pariser Platz in front of the Brandenburg Gate on June 19, 2013, in Berlin, Germany.
Obama and Merkel on the Pariser Platz in front of the Brandenburg Gate on June 19, 2013, in Berlin, Germany.
Obama waves during a welcome ceremony at Herrenhausen Palace accompanied by Merkel on Obama's first day of a two-day trip to Germany on April 24 in Hanover, Germany.
Obama waves during a welcome ceremony at Herrenhausen Palace accompanied by Merkel on Obama's first day of a two-day trip to Germany on April 24 in Hanover, Germany.
Merkel and Obama sign in a golden book in the "Gruenes Gewoelbe" (Green Vault) on June 5, 2009, in Dresden, Germany.
Merkel and Obama sign in a golden book in the "Gruenes Gewoelbe" (Green Vault) on June 5, 2009, in Dresden, Germany.
Obama and Merkel sit during the official opening ceremony of the Hanover Industrial Fair in Hanover, Germany, on April 24.
Obama and Merkel sit during the official opening ceremony of the Hanover Industrial Fair in Hanover, Germany, on April 24.
Obama meets with Merkel in the Oval Office on Nov. 3, 2009.
Obama meets with Merkel in the Oval Office on Nov. 3, 2009.
Merkel welcomes Obama during his run for president, on July 24, 2008, in Berlin.
Merkel welcomes Obama during his run for president, on July 24, 2008, in Berlin.
Obama and Merkel stroll outside at the summit of G7 nations at Schloss Elmau on June 7, 2015, near Garmisch-Partenkirchen, Germany.
Obama and Merkel stroll outside at the summit of G7 nations at Schloss Elmau on June 7, 2015, near Garmisch-Partenkirchen, Germany.

Love HuffPost? Become a founding member of HuffPost Plus today.

This article originally appeared on HuffPost.