The Leader, in a message, urged Afghan officials to prevent the repetition of such acts of terrorism in the future.
In his message, Ayatollah Khamenei described the bombing in Kunduz as a bitter and disastrous incident, saying the carnage left him filled with grief. Ayatollah Khamenei described the perpetrators of the terrorist attack as bloodthirsty criminals who must be brought to justice.
He also prayed for divine mercy on those killed in the explosion and swift recovery for the worshippers who were wounded.
The mosque bombing in Afghanistan happened during Friday prayers. It killed dozens of people and wounded many more.
The Taliban who are in control of Afghanistan has condemned the blast, promising to find and punish the those behind it.
The Daesh terror group has claimed responsibility for the bomb explosion.