Actions are judged by intentions, and every person will be rewarded according to what they intended." (sahih al-bukhari, book 1, hadith 1)