al-Bukhārī, Muslim, and others) and he (ṣallá Allāhu ʿalayhi wa-sallam) used to say: "Actions are only by intentions, and every person will have only what they intended."
(البخاري ومسلم وغيرهما) وكان ﷺ يقول: (إنما الأعمال بالنيات وإنما لكل امرئ ما نوى)