Quote
The second thing, what I know is that people are accounted for their intention, if you do something and this deed gives consequences other than who you intended it to be, then you are actually accounted for your intention not for the consequences, for example if I robbed a guy walking in the street and gave what I stole as a present to a friend of mine, then I discovered that the guy I robbed actually stole this stuff from my friend, am I a thief or a noble guy who wanted to help my friend? For sure a thief, as my intention was just to rob a guy and I didn’t know the other part of the story.

An excellent example

Allah bless you