Praise be to Allah.
You describe this young man as being loved by his people, but he is guilty of some transgression which is a matter between him and his Lord. I say that the fact that Allaah has blessed him with the position of imaam and the love of his people dictates that he should give up his sin and stop transgressing against himself, and he should worship Allaah properly, and give thanks to Allaah, because the fact that a person is loved by his people and is their imaam is a great blessing from Allaah. Allaah says (interpretation of the meaning):
“And the slaves of the Most Beneficient (Allaah) are those who walk on the earth in humility and sedateness…
And those who say: ‘Our Lord… and make us leaders for the muttaqoon (the pious)…” [al-Furqaan 25:63-74]
Those who pray are among the pious, and the one who leads them in prayer is imcluded in this aayah, “…and make us leaders for the muttaqoon (the pious)…” So let him praise Allaah for this blessing, and stop transgressing against himself, and let him make this one of the means of bringing himself back to obedience to Allaah, and let him fear Allaah with regard to his status.
When he says that he is afraid he may show off, this is waswaas (insinuating thoughts) that the Shaytaan puts into a person’s mind whenever he wants to do an act of obedience to Allaah. The Shaytaan comes to him and says, “You are showing off.” He has to cast this idea aside, ignore it and seek the help of Allaah, for he always recites in his salaah the words, “Iyyaaka na’budu wa iyyaaka nasta’een (You (Alone) we worship, and You (Alone) we ask for help” [al-Faatihah 1:5 – interpretation of the meaning].