TEHRAN, Young Journalists Club (YJC) - The accused, Nino Koehler, had apologized during his trial to the imam and his family. No one was hurt in the attack.
The bomb damaged the door of the Iman mosque while the family were inside on Sept 26, 2016.
That same evening, the accused planted another homemade pipe bomb that slightly damaged a convention center in the city, which was days away from hosting festivities to mark 26 years since the reunification of east and west Germany.
The attacks in Dresden, the capital of Saxony state and the birthplace of the anti-Islam Pegida movement, shocked Germany.
The city's district court found Koehler guilty of attempted murder, setting off explosives and attempted aggravated arson. The judge sentenced him to nine years and eight months in jail, AFP reported.
Prosecutors accused him during the trial of harboring racist and Islamophobic motives, and media reports said he had railed against "lazy Africans" and "criminal foreigners" at a past Pegida rally.
Koehler, who was arrested in December 2016, told the judge that he never meant to hurt anyone.
Saxony, in Germany's ex-communist east, has become a hotspot for far-right protests and hate crimes after more than a million asylum seekers arrived in Europe's biggest economy since 2015.