Whoever intercedes for a good cause will have a share [i.e., reward] therefrom; and whoever intercedes for an evil cause will have a portion [i.e., burden] therefrom. And ever is Allāh, over all things, a Keeper.1
Translation: Saheeh International (English)
1 Providing, protecting, witnessing, keeping precise records and capable of recompense.
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.