Pope Francis hugs a child at the Moria detention center in Mytilene on April 16, 2016.  
Pope Francis received an emotional welcome today on the Greek island of Lesbos during a visit aimed at showing solidarity with migrants fleeing war and poverty. Pope Francis, Orthodox Patriarch Bartholomew and Archbishop Jerome visit Lesbos today to turn the spotlight on Europe
Pope Francis hugs a child at the Moria detention center in Mytilene on April 16, 2016. Pope Francis received an emotional welcome today on the Greek island of Lesbos during a visit aimed at showing solidarity with migrants fleeing war and poverty. Pope Francis, Orthodox Patriarch Bartholomew and Archbishop Jerome visit Lesbos today to turn the spotlight on Europe's controversial deal with Turkey to end an unprecedented refugee crisis. / AFP / ARIS MESSINIS (Photo credit should read ARIS MESSINIS/AFP/Getty Images)
PHOTO: ARIS MESSINIS/AFP/AFP/Getty Images
Now playing
01:18
Pope takes 12 refugees back to Vatican
Photos from the Sarost 5, a ship currently stuck at sea with 40 migrants on board, including 2 pregnant women. According to the ship
Photos from the Sarost 5, a ship currently stuck at sea with 40 migrants on board, including 2 pregnant women. According to the ship's second captain Amman Ourari, it has been refused entry by Malta, Italy, France and Tunisia. Photos are from the ship's second captain Amman Ourari.
PHOTO: Ayman Ourari
Now playing
00:50
Migrant ship stranded for two weeks at sea
Rescue boat carrying migrants from off the coast of Libya.
Rescue boat carrying migrants from off the coast of Libya.
PHOTO: Karpov/SOS Mediterranee/MSF/Twitter
Now playing
02:31
The journey of a ship carrying 600 migrants
Now playing
03:57
Migrant returns home to brutal reality
A young boy wrapped in a blanket to protect him from the rain gestures as migrants and refugees protest to call for the opening of the borders near the village of Idomeni where thousands of refugees and migrants are stranded on March 7, 2016. 
EU leaders held a summit with Turkey
A young boy wrapped in a blanket to protect him from the rain gestures as migrants and refugees protest to call for the opening of the borders near the village of Idomeni where thousands of refugees and migrants are stranded on March 7, 2016. EU leaders held a summit with Turkey's prime minister on March 7 in order to back closing the Balkans migrant route and urge Ankara to accept deportations of large numbers of economic migrants from overstretched Greece. / AFP / LOUISA GOULIAMAKI (Photo credit should read LOUISA GOULIAMAKI/AFP/Getty Images)
PHOTO: LOUISA GOULIAMAKI/AFP/AFP/Getty Images
Now playing
01:47
A year in the life of migrants
PHOTO: Portuguese Air Force
Now playing
00:43
Dramatic escape as migrant boat catches fire
PHOTO: MOAS
Now playing
00:49
Massive rescue effort in the Mediterranean
PHOTO: Jaime Moreno
Now playing
00:57
Migrant boat lands on Spanish beach
A group of migrants off an incoming train walk down a platform as they are accompanied by the police at the Swedish end of the bridge between Sweden and Denmark near Malmoe on November 12, 2015. The Swedish government on November 11, 2015 said it would temporarily reinstate border checks to deal with an unprecedented influx of migrants, making it the latest country in Europe
A group of migrants off an incoming train walk down a platform as they are accompanied by the police at the Swedish end of the bridge between Sweden and Denmark near Malmoe on November 12, 2015. The Swedish government on November 11, 2015 said it would temporarily reinstate border checks to deal with an unprecedented influx of migrants, making it the latest country in Europe's passport-free Schengen zone to tighten its borders over the crisis. AFP PHOTO / TT NEWS AGENCY / STIG-AKE JONSSON +++ SWEDEN OUT +++ (Photo credit should read STIG-AKE JONSSON/AFP/Getty Images)
PHOTO: AFP/AFP/AFP/Getty Images
Now playing
01:10
Sweden's refugees by the numbers
Now playing
01:41
Migrants in Serbia: A grim life
heroic crews rescue refugees at sea orig_00000206.jpg
heroic crews rescue refugees at sea orig_00000206.jpg
PHOTO: www.globaldirt.org/Global Dirt
Now playing
03:29
Heroic crews rescue refugees lost at sea
A protester holds up a Turkish flag as others raise their hands during a demonstration in Taksim square in Istanbul on June 8, 2013. Thousands of angry Turks took to the streets on June 8 to join mass anti-government protests, defying Prime Minister Recep Tayyip Erdogan
A protester holds up a Turkish flag as others raise their hands during a demonstration in Taksim square in Istanbul on June 8, 2013. Thousands of angry Turks took to the streets on June 8 to join mass anti-government protests, defying Prime Minister Recep Tayyip Erdogan's call to end the worst civil unrest of his decade-long rule. Erdogan, meanwhile, was meeting in Istanbul with top officials of his Justice and Development Party (AKP) to discuss the crisis, and a deputy prime minister was due to make a speech later on June 8. AFP PHOTO/BULENT KILIC (Photo credit should read BULENT KILIC/AFP/Getty Images)
PHOTO: BULENT KILIC/AFP/Getty Image
Now playing
01:09
Turkey: A country in turmoil
A photo released by the Italian coast guard shows babies born in a migrant rescue ship off the Sicilian coast.
A photo released by the Italian coast guard shows babies born in a migrant rescue ship off the Sicilian coast.
PHOTO: Italian Coast Guard
Now playing
00:50
Migrant mothers give birth on Italian rescue ship
Survivors from a boat that capsized, off Egypt
Survivors from a boat that capsized, off Egypt's north coast, sit in a police station in Rashid in northern Egypt, on September 21, 2016. A boat carrying up to 450 migrants capsized in the Mediterranean off Egypt's north coast on, drowning 42 people and prompting a search operation that rescued 163 passengers, officials said. / AFP / MOHAMED EL-SHAHED (Photo credit should read MOHAMED EL-SHAHED/AFP/Getty Images)
PHOTO: MOHAMED EL-SHAHED/AFP/AFP/Getty Images
Now playing
01:02
Migrant boat capsizes near Egypt
In this Friday, May 20, 2016 image made from video a group of Cubans stand atop American Shoal Lighthouse off Sugarloaf Key in a standoff with Coast Guard, in the Florida Keys. The group of migrants who fled Cuba in a homemade boat and climbed onto the 136-year-old lighthouse off the Florida Keys should be allowed to stay in the U.S., according to a federal lawsuit filed on their behalf.
In this Friday, May 20, 2016 image made from video a group of Cubans stand atop American Shoal Lighthouse off Sugarloaf Key in a standoff with Coast Guard, in the Florida Keys. The group of migrants who fled Cuba in a homemade boat and climbed onto the 136-year-old lighthouse off the Florida Keys should be allowed to stay in the U.S., according to a federal lawsuit filed on their behalf.
PHOTO: WSVN-TV/AP
Now playing
00:46
Cubans who climbed lighthouse to be sent home
An Italian Navy ship spotted a boat with migrants off the Libyan coast and shortly after the migrant ship flipped for the precarious floating conditions given the hi number of migrants on board. Rescue operations are still ongoing also with the help of an helicopter and of a second Navy vessel. At the moment 500 people have been saved and seven are dead.
An Italian Navy ship spotted a boat with migrants off the Libyan coast and shortly after the migrant ship flipped for the precarious floating conditions given the hi number of migrants on board. Rescue operations are still ongoing also with the help of an helicopter and of a second Navy vessel. At the moment 500 people have been saved and seven are dead.
PHOTO: Italian Navy
Now playing
00:55
Ship flips, throws 500+ overboard
German Navy sailors surround a boat with more than 100 migrants near the German combat supply ship
German Navy sailors surround a boat with more than 100 migrants near the German combat supply ship 'Frankfurt am Main' during EUNAVFOR Med, also known as Operation Sophia, in the Mediterranean Sea off the coast of Libya, Tuesday, March 29, 2016. (AP Photo/Matthias Schrader)
PHOTO: Matthias Schrader/AP
Now playing
01:48
ISIS infiltrates the migrant route in Libya

Story highlights

Pope taking 12 migrants back to Rome on papal plane

"I embrace all in affection," Pope says

Migrants weep as they ask for blessing

(CNN) —  

Pope Francis spoke of empathy and mercy as he met Saturday with migrants on the Greek island of Lesbos. Then to demonstrate his message, he took 12 of them to the Vatican with him aboard the papal plane.

Francis made a well-publicized visit to the island, home to migrants and refugees who have fled war and violence in the Middle East and North Africa. The Pope invited three Syrian migrant families to go with him as he returned home, the Holy See Press Office said.

The Vatican will take responsibility for the three families, the statement said. All are from Syria.

“The Pope has desired to make a gesture of welcome regarding refugees, accompanying on his plane to Rome three families of refugees from Syria, 12 people in all, including six children,” the statement said.

These are people who were already in camps in Lesbos before a European Union-Turkey agreement in which anyone crossing into Greece illegally from Turkey will be returned. All three families are Muslim. Two families come from Damascus, and one from Deir Ezzor, the statement continued. “Their homes had been bombed.”

The families were selected in a lottery-type process, said Kathleen Prior, a spokeswoman for the humanitarian organization International Rescue Committee.

“The Pope has sent a strong message in relocating 12 people, including women and children, from three Syrian families from the camps on Lesbos,” Prior said. “These refugees were randomly selected and are the very few lucky ones.”

Little is known of the Pope’s plans for the families. The initial hospitality will be taken care of by the Community of Sant’Egidio.

According to its website, the Community of Sant’Egidio began in Rome in 1968, in the period following the Second Vatican Council.

“Today it is a movement of lay people and has more than 60,000 members, dedicated to evangelization and charity, in Rome, Italy and in more than 73 countries throughout the world,” the website says.

In an interview with journalists on the plane after leaving Greece, the Pope said all nations have the responsibility of welcoming refugees.

“I have always said that building walls is not a solution,” he said. “We saw walls during the last century and they did not resolve anything. We must build bridges. Bridges are built with intelligence, with dialogue, with integration.”

U.N. High Commissioner for Refugees Filippo Grandi praised the pope’s gesture, calling it “a powerful demonstration of solidarity. It must inspire governments and societies in a world where the desperate plight of record numbers of forcibly displaced is too often met by barriers, rejection and fear.”

Refugees on Lesbos deeply moved

Lesbos houses thousands who have fled Syria, Iraq, Afghanistan and other countries plagued by war and poverty in the last year. Thousands have drowned or gone missing after trying to cross the Mediterranean to peripheral European land such as Lesbos.

Francis visited the island with the leader of the Orthodox Christians, Ecumenical Patriarch Bartholomew, and Archbishop Ieronymos II of Athens.

From its beginning, the visit was deeply moving to the refugees.

Some broke down in tears, with one man shaking as he asked, “Father, bless me. Please, bless me.”

Children took pictures of the Pope with their phones as he shook hands with those gathered to greet him.

At the port, Francis offered a prayer to God for “all the men, women and children who have died after leaving their homelands in search of a better life.”

“Though many of their graves bear no name, to you each one is known, loved and cherished,” the Pope said.

In the 24 hours before the Pope’s arrival, 125 migrants and refugees streamed into the Greek islands from Turkey, according to Greek government figures.

Pope: ‘I embrace all in affection’

The Pope comforted the refugees he met, sharing a message on empathy.

“I have wanted to be here with you today to speak with you and tell you: You are not alone. You have endured much suffering in your search for a better life,” the Pope said. “You have made great sacrifices for your families.”

“May the world, the Good Samaritan, come to your aid with respect for human dignity,” he said.

In explaining his prayers for the refugees and migrants, Francis invoked the name of the Lord.

“I embrace all in affection,” he said. “I invoke his gift of strength and peace.”

CNN’s Faith Karimi, Atika Shubert, Gul Tuysuz, Elinda Labropoulou and Jason Hanna contributed to this report.