مَّن يَشْفَعْ شَفَٰعَةً حَسَنَةًۭ يَكُن لَّهُۥ نَصِيبٌۭ مِّنْهَا ۖ وَمَن يَشْفَعْ شَفَٰعَةًۭ سَيِّئَةًۭ يَكُن لَّهُۥ كِفْلٌۭ مِّنْهَا ۗ وَكَانَ ٱللَّهُ عَلَىٰ كُلِّ شَىْءٍۢ مُّقِيتًۭا
Sura An-Nisaa
Tafsir 4:85
Whoever intercedes or directs another person to some good them in a manner containing no sin or oppression, will receive a share of the reward of the good outcome; and whoever makes a bad intercession, which contains sin or oppression, will receive a share of the sin. Allah watches everything that a person does and will reward him accordingly. So if you become a means of goodness, you will receive a share in that good; and if you become a means of doing evil, you will be guilty for a part of it.