Imam Ali (AS) narrated from the Prophet of Islam (PBUH) who said:
Anyone who becomes an intermediator of a good deed, or enjoins good and prohibits bad, or guides another person to a good deed, or gives anyone a correct and proper consultation, will share in the good deeds of them. And whoever misguides anyone to a bad act, or forces a person to a bad deed, will share in these bad actions [1].
[1] Navader Ravandi, Page 143.
Source: en.shafaqna.com