Actions will be judged a ccording to the intentions
The prophet said :'Actions will be judged a ccording to the intentions (behind them) ,and everyone will be repid accor ding to wgat he intended '.
(Bukhari ,Muslim)
قال رسول الله صلي الله عليه و سلم:انما الاعمال بالنيات ,وانما لكل امرئ ما نوي (البخاري و مسلم)
well done quran-translate, once again!