With regards to the student of knowledge being pleased with and helping the Muslim who is learning and not having any envy of him, the Shaykh Muhammad ibn Saalih al ‘Uthaymeen rahimahullaah comments:
And from that which is befitting for the student of knowledge with regards to his colleagues is that he does not have jealousy of them regarding that which Allaah has bestowed upon them, by way of memorization or understanding or knowledge.
And that he does not have jealousy of them in that by which he may benefit them, by way of supporting (them) and helping (them) – be that in (giving them) a booklet or (sharing) research or other than that.
This is because for some of the students, Shaytaan speaks to him saying to him, “If you help your companion, he will become better than you.” And this is an error.
Rather we say, just as the Prophet sall Allaahu ‘alaihi wa ‘alaa aalihi wa sallam said:
“Allaah is in the aid of the servant whilst the servant is in the aid of his brother.”
And it does not automatically follow on that if your companion is someone who is coming for the forefront (due to his knowledge) or someone who is attaining knowledge which he did not attain except with your (help), it is does not necessitate that he has got ahead of you.
So (by helping him) you are benefitting yourself and you are not harming your own self at all.
Quoted in Wasaayaa wa tawjeehaat li tullaab il ‘ilm page 82, translated by Nasser ibn Najam