US pastor Andrew Craig Brunson escorted by Turkish plain clothes police officers arrives at his house on July 25, 2018 in Izmir. - Turkey on July 15, 2018 moved from jail to house arrest US pastor Andrew Brunson who has spent almost two years imprisoned on terror-related charges, in a controversial case that has ratcheted up tensions with the United States. Andrew Brunson, who ran a protestant church in the Aegean city of Izmir, was first detained in October 2016 and had remained in prison in Turkey ever since. (Photo by - / AFP)        (Photo credit should read -/AFP/Getty Images)
AFP/Getty Images
US pastor Andrew Craig Brunson escorted by Turkish plain clothes police officers arrives at his house on July 25, 2018 in Izmir. - Turkey on July 15, 2018 moved from jail to house arrest US pastor Andrew Brunson who has spent almost two years imprisoned on terror-related charges, in a controversial case that has ratcheted up tensions with the United States. Andrew Brunson, who ran a protestant church in the Aegean city of Izmir, was first detained in October 2016 and had remained in prison in Turkey ever since. (Photo by - / AFP) (Photo credit should read -/AFP/Getty Images)
Now playing
01:37
US pastor released from Turkish detention
US pastor Andrew Craig Brunson escorted by Turkish plain clothes police officers arrives at his house on July 25, 2018 in Izmir. - Turkey on July 15, 2018 moved from jail to house arrest US pastor Andrew Brunson who has spent almost two years imprisoned on terror-related charges, in a controversial case that has ratcheted up tensions with the United States. Andrew Brunson, who ran a protestant church in the Aegean city of Izmir, was first detained in October 2016 and had remained in prison in Turkey ever since. (Photo by - / AFP)        (Photo credit should read -/AFP/Getty Images)
AFP/Getty Images
US pastor Andrew Craig Brunson escorted by Turkish plain clothes police officers arrives at his house on July 25, 2018 in Izmir. - Turkey on July 15, 2018 moved from jail to house arrest US pastor Andrew Brunson who has spent almost two years imprisoned on terror-related charges, in a controversial case that has ratcheted up tensions with the United States. Andrew Brunson, who ran a protestant church in the Aegean city of Izmir, was first detained in October 2016 and had remained in prison in Turkey ever since. (Photo by - / AFP) (Photo credit should read -/AFP/Getty Images)
Now playing
00:43
Turkey rejects US pastor Brunson's release
Photo Illustration: Shutterstock/CNNMoney
Now playing
02:11
Trump threatens sanctions on Turkey over pastor
Planet Labs Inc.
Now playing
01:25
Satellite images show missile plant construction
Turkish flags flutter nest to a huge portrait of Turkey's President and leader of the Justice and Development Party (AKP) Recep Tayyip Erdogan as he gives a speech during an AKP pre-election rally in Yenikapi Square in Istanbul on June 17, 2018. - With a week to go to crucial Turkish elections, the leader of the AKP  and his main rival of the secular Republican People's Party (CHP) are trading blows in an unexpectedly bruising fight to win control of the country. (Photo by Aris MESSINIS / AFP)        (Photo credit should read ARIS MESSINIS/AFP/Getty Images)
ARIS MESSINIS/AFP/AFP/Getty Images
Turkish flags flutter nest to a huge portrait of Turkey's President and leader of the Justice and Development Party (AKP) Recep Tayyip Erdogan as he gives a speech during an AKP pre-election rally in Yenikapi Square in Istanbul on June 17, 2018. - With a week to go to crucial Turkish elections, the leader of the AKP and his main rival of the secular Republican People's Party (CHP) are trading blows in an unexpectedly bruising fight to win control of the country. (Photo by Aris MESSINIS / AFP) (Photo credit should read ARIS MESSINIS/AFP/Getty Images)
Now playing
03:32
The Erdogan effect: How one man shaped Turkey
Supporters of Turkey's President Recep Tayyip Erdogan listen as he addresses them outside his official residence in Istanbul, Sunday, June 24, 2018. Erdogan has claimed victory in critical elections based on unofficial results, securing an executive presidency with sweeping powers. (AP Photo/Lefteris Pitarakis)
Lefteris Pitarakis/AP
Supporters of Turkey's President Recep Tayyip Erdogan listen as he addresses them outside his official residence in Istanbul, Sunday, June 24, 2018. Erdogan has claimed victory in critical elections based on unofficial results, securing an executive presidency with sweeping powers. (AP Photo/Lefteris Pitarakis)
Now playing
02:35
Erdogan seeks to strengthen presidency with win
Turkey's President Recep Tayyip Erdogan delivers a statement on national television from his official residence in Istanbul, Sunday, June 24, 2018. Erdogan has claimed victory in critical elections based on unofficial results, securing an executive presidency with sweeping powers. (AP Photo/Lefteris Pitarakis)
Lefteris Pitarakis/AP
Turkey's President Recep Tayyip Erdogan delivers a statement on national television from his official residence in Istanbul, Sunday, June 24, 2018. Erdogan has claimed victory in critical elections based on unofficial results, securing an executive presidency with sweeping powers. (AP Photo/Lefteris Pitarakis)
Now playing
02:00
Erdogan declares victory in Turkish election
ISTANBUL, TURKEY - JUNE 17:  TurkeyÕs President Recep Tayyip Erdogan speaks to supporters during a AK Parti election rally on June 17, 2018 in Istanbul, Turkey.  Presidential candidates from all parties are holding campaign rallies across Turkey a week ahead of the countries June 24, parliamentary and presidential elections.  (Photo by Chris McGrath/Getty Images)
Chris McGrath/Getty Images Europe/Getty Images
ISTANBUL, TURKEY - JUNE 17: TurkeyÕs President Recep Tayyip Erdogan speaks to supporters during a AK Parti election rally on June 17, 2018 in Istanbul, Turkey. Presidential candidates from all parties are holding campaign rallies across Turkey a week ahead of the countries June 24, parliamentary and presidential elections. (Photo by Chris McGrath/Getty Images)
Now playing
03:17
Everything to know about Turkey's elections
ADANA, TURKEY - JUNE 01:  Leader of Turkey's Iyi (Good) Party and presidential candidate, Meral Aksener speaks to supporters at a rally on June 1, 2018 in Adana, Turkey. Meral Aksener and party members campaigned in Hatay, Adana and surrounding areas ahead of the June 24, 2018 parliamentary and presidential elections. Aksener is one of six candidates contesting the snap elections called by Turkey's President Recep Tayyip Erdogan.  (Photo by Chris McGrath/Getty Images)
Chris McGrath/Getty Images Europe/Getty Images
ADANA, TURKEY - JUNE 01: Leader of Turkey's Iyi (Good) Party and presidential candidate, Meral Aksener speaks to supporters at a rally on June 1, 2018 in Adana, Turkey. Meral Aksener and party members campaigned in Hatay, Adana and surrounding areas ahead of the June 24, 2018 parliamentary and presidential elections. Aksener is one of six candidates contesting the snap elections called by Turkey's President Recep Tayyip Erdogan. (Photo by Chris McGrath/Getty Images)
Now playing
03:02
Turkey's 'she wolf' promises change
erdogan
MALLO, CHARBEL/CNN
erdogan
Now playing
04:20
Erdogan: US Embassy move a huge mistake
ISTANBUL, TURKEY - NOVEMBER 16:  Mina Basaran attends the screening of 'Past Forward', a movie by David O. Russell presented by Prada on November 16, 2016 in Istanbul, Turkey.  (Photo by Levent Kulu/Getty Images for PRADA)
Levent Kulu/Getty Images for PRADA
ISTANBUL, TURKEY - NOVEMBER 16: Mina Basaran attends the screening of 'Past Forward', a movie by David O. Russell presented by Prada on November 16, 2016 in Istanbul, Turkey. (Photo by Levent Kulu/Getty Images for PRADA)
Now playing
00:51
Heiress reportedly dies in plane crash
daughter of turkey journalist jailed 2
CNN, Sanem Altan
daughter of turkey journalist jailed 2
Now playing
02:31
Turkey jails six journalists for life
TOPSHOT - Turkish troops advance near the Syria border at Hassa, Hatay province, on January 22, 2018, as part of the operation "Olive Branch", launched two days ago.
The operation aims to oust the People's Protection Units (YPG) militia, which Turkey considers to be a terror group, from its enclave of Afrin. / AFP PHOTO / BULENT KILIC        (Photo credit should read BULENT KILIC/AFP/Getty Images)
BULENT KILIC/AFP/Getty Images
TOPSHOT - Turkish troops advance near the Syria border at Hassa, Hatay province, on January 22, 2018, as part of the operation "Olive Branch", launched two days ago. The operation aims to oust the People's Protection Units (YPG) militia, which Turkey considers to be a terror group, from its enclave of Afrin. / AFP PHOTO / BULENT KILIC (Photo credit should read BULENT KILIC/AFP/Getty Images)
Now playing
02:50
Trump urged Turkey to de-escalate in Syria
Turkish soldiers look through the hatches and turrets of an infantry fighting vehicle (IFV) as they pass through the Bab al-Salamah border crossing between Syria and Turkey in the north of Aleppo province, on January 21, 2018.
Turkish troops and tanks entered northern Syria on January 21 in an offensive aimed at ousting the Kurdish Peoples' Protection Units (YPG), which Ankara considers a terror group, from the Afrin region bordering Turkey. / AFP PHOTO / Nazeer al-Khatib        (Photo credit should read NAZEER AL-KHATIB/AFP/Getty Images)
NAZEER AL-KHATIB/AFP/Getty Images
Turkish soldiers look through the hatches and turrets of an infantry fighting vehicle (IFV) as they pass through the Bab al-Salamah border crossing between Syria and Turkey in the north of Aleppo province, on January 21, 2018. Turkish troops and tanks entered northern Syria on January 21 in an offensive aimed at ousting the Kurdish Peoples' Protection Units (YPG), which Ankara considers a terror group, from the Afrin region bordering Turkey. / AFP PHOTO / Nazeer al-Khatib (Photo credit should read NAZEER AL-KHATIB/AFP/Getty Images)
Now playing
01:48
Tensions grow between the US, Turkey
A plume of smoke rises on the air from inside Syria, as seen from the outskirts of the border town of Kilis, Turkey, Saturday, Jan. 20, 2018. Turkish Prime Minister Binali Yildirim says Turkish jets have begun an aerial offensive against the Syrian Kurdish-held enclave of Afrin. Turkey's military fired into the enclave in north Syria for a second day on Saturday. (AP Photo/Lefteris Pitarakis)
AP Photo/Lefteris Pitarakis
A plume of smoke rises on the air from inside Syria, as seen from the outskirts of the border town of Kilis, Turkey, Saturday, Jan. 20, 2018. Turkish Prime Minister Binali Yildirim says Turkish jets have begun an aerial offensive against the Syrian Kurdish-held enclave of Afrin. Turkey's military fired into the enclave in north Syria for a second day on Saturday. (AP Photo/Lefteris Pitarakis)
Now playing
02:23
Rockets fired from Syria hit Turkey border
Syria's Little Turkey Arwa Damon pkg_00005020.jpg
Syria's Little Turkey Arwa Damon pkg_00005020.jpg
Now playing
02:31
Turkey helps rebuild Syrian town after ISIS
(CNN) —  

American pastor Andrew Brunson, released after being detained in Turkey for two years, has landed at Ramstein Air Force Base in Germany, a senior US administration official said Friday night.

Brunson is expected to spend a brief time at Ramstein before flying to Washington on Saturday, a White House spokesman said. Speaking at a rally in Ohio, President Trump said he plans to meet with Brunson.

Brunson had been charged with helping to plot a coup against President Recep Tayyip Erdogan. A Turkish court on Friday sentenced Brunson to three years and one month in prison, but chose to release him based on his time already served, as well as his manner during the proceedings, his lawyer said. Prosecutors were seeking a 10-year jail term.

After his release, Brunson quickly left his home in Izmir, Turkey, and headed to the airport. Two US defense officials said the US had put a military aircraft on standby from Europe to transport Brunson out of Turkey. The senior administration source said Brunson’s wife flew with him.

The case had soured relations between Turkey and the United States, heightened by Trump’s defense of Brunson as his administration elevated religious freedom as a cause.

Speaking Friday at a rally in Lebanon, Ohio, Trump said, “Earlier today we secured the release of pastor Andrew Brunson.”

Bunson, he said, is “free from jail” and was “in the air” on his way to Germany, where he will undergo a “brief check.”

“He’s coming to Washington, DC, tomorrow and we’ll say hello,” Trump said, adding, “He went through a lot … and he’s on his way back.”

Andrew Brunson arrives back at his home in Izmir, Turkey, after his trial on Friday.
STRINGER/REUTERS
Andrew Brunson arrives back at his home in Izmir, Turkey, after his trial on Friday.

A source told CNN that Brunson will be flown to Germany and if he needs medical assistance he may stay in Germany before returning to Washington.

The court’s decision comes a day after a source told CNN that US officials believed they were on the verge of securing Brunson’s release.

Trump tweeted after the verdict: “My thoughts and prayers are with Pastor Brunson, and we hope to have him safely back home soon!”

Turkey’s presidential office denied any deal with the US had taken place and criticized Trump for tweeting that he had been “working very hard on Pastor Brunson” and his release.

“It is with great regret that we have been monitoring US efforts to mount pressure on Turkey’s independent court system for some time. During this period, our country has been subjected to various threats of sanctions,” said Fahrettin Altun, the Turkish presidency’s communications director, in a written statement.

’I love Jesus. I love Turkey.’

Before the verdict, Brunson was able to meet his wife in the courthouse, where they held hands and talked about the possible outcome.

“I am an innocent man. I love Jesus. I love Turkey,” said Brunson, wearing a dark suit and red tie.

Andrew brunson's wife,  Norine Brunson, departing for Friday's hearing.
Burak Kara/Getty Images Europe/Getty Images
Andrew brunson's wife, Norine Brunson, departing for Friday's hearing.

Brunson was moved to his home in July this year, placed under house arrest and given a travel ban, in a move seen as a potential step toward his release.

Brunson’s lawyer, Ismail Cem Halavurt, told CNN that Brunson’s electronic tag would later be removed and that his client was now a “free man.”

Turkish security officers outside the courthouse in Aliaga, Turkey, on Friday.
Ben Wedeman/CNN
Turkish security officers outside the courthouse in Aliaga, Turkey, on Friday.

Turkey detained Brunson in October 2016 in the aftermath of a failed military coup.

Brunson, a native of North Carolina, worked as an evangelical Presbyterian pastor at the Izmir Resurrection Church.

He has lived in Turkey for more than 23 years with his wife and three children, according to the American Center for Law and Justice, which had advocated for his release.

Turkish-US relations warm

The Brunson decision comes at a time of intense global attention on Turkey, which has locked horns with Saudi Arabia over the disappearance of a Saudi journalist in Istanbul.

Turkish authorities claim to have audio and visual evidence that shows Jamal Khashoggi, a Washington Post columnist, was killed inside the Saudi consulate, a source familiar with the ongoing investigation told CNN.

Saudi Arabia firmly denies any involvement in his disappearance.

Brunson’s release is also a step forward in Turkish-US relations, which have shown signs of warming in recent months. Trump and Erdogan met briefly on the sidelines of the UN General Assembly in September for the first time since relations soured. Shortly afterward, Erdogan said the two countries were likely to weather the storm.

Turkey had good financial and strategic reasons to release Brunson, several analysts have said, including the threat of further US sanctions if Brunson had not been released.

Trump slapped Turkey, a NATO ally, with sanctions in August, targeting the country’s justice and interior ministers.

In August, Trump told reporters that Turkey had “not acted as a friend” and that the charges against Brunson were “phony.”

CNN’s Sebastian Shukla and Murat Baykara reported from Aliaga and Angela Dewan reported from London. CNN’s Ben Wedeman, Hande Atay Alam, Gul Tuysuz, Isil Sariyuce, Evan Perez, Barbara Starr, Jeremy Diamond, Abby Phillip, Sarah Westwood and Allie Malloy contributed to this report.