Sure An-Nisaa

4:85

مَّن يَشْفَعْ شَفَٰعَةً حَسَنَةًۭ يَكُن لَّهُۥ نَصِيبٌۭ مِّنْهَا ۖ وَمَن يَشْفَعْ شَفَٰعَةًۭ سَيِّئَةًۭ يَكُن لَّهُۥ كِفْلٌۭ مِّنْهَا ۗ وَكَانَ ٱللَّهُ عَلَىٰ كُلِّ شَىْءٍۢ مُّقِيتًۭا

Wer (in) eine(r) gute(n Sache) Fürsprache einlegt, für den wird es einen Anteil daran geben, und wer (in) eine(r) schlechte(n Sache) Fürsprache einlegt, für den wird es ein gleiches davon geben. Und Allah ist zu allem Fähig.

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.