Heinrich Steinmeyer, a Waffen SS soldier during World War II, was captured in France when he was 19 and was held in a prisoner-of-war (PoW) camp at Cultybraggan near Comrie, where he was warmly welcomed.
While imprisoned, he made close friends with George Carson, who died just two weeks before the former soldier. Carson's son told BBC Radio 4's Today programme how his parents befriended Steinmeyer through the fence of the camp and even sneaked him out once.
After being released, Steinmeyer decided to stay in the village to work for a while and later he returned to visit.
"After the war, he visited Comrie and made lasting friendships in the village," Andrew Reid, secretary of Comrie Development Trust, said. "He vowed to leave everything he owned for the benefit of older people in the place he wanted to thank."
"I would like to express my gratitude to the people of Scotland for the kindness and generosity that I have experienced in Scotland during my imprisonment of war and hereafter," Steinmeyer said in his will, as cited by the Comrie Development Trust.
Steinmeyer died in 2014 at the age of 90, two weeks after the death of George Carson.