Lady Rae told Ahmed: “ This was a barbaric, premeditated and wholly unjustified killing of a much loved man who was a pillar of the local community.

“He was described as a peaceful and peace-loving man and family man who went out of his way to show respect for those of any faith.”

She branded the attack “an appalling display of merciless violence” as Ahmed ignored the pleas from Mr Shah's brother to stop.

She added: “No one in any civilised country, including Scotland, has the right to take the life of another, whatever offence that individual perceives that he or she has suffered.

“It is vitally important in modern society that respect and tolerance for others of any race, creed, colour, ethnic origin or religious belief is maintained and protected by the law of the land.” The judge also said she noted with "considerable concern" that Ahmed had expressed no remorse.

The killer shouted to his family and friends in the public gallery as he was led from the dock, saying: "Praise for the Prophet Muhammad, there is only one Prophet." Some of his supporters responded by raising their arms and repeating the phrase.

On March 24, Ahmed watched a video of Mr Shah on his mobile phone and left a message for an acquaintance saying: “Listen to this guy, something needs to be done, it needs nipped in the bud.”