إِنَّمَا الأَعْمَالُ بِالنِّيَّاتِ، وَإِنَّمَا لِكُلِّ امْرِئٍ مَا نَوَى (Sahih al-Bukhari: 1)
Meaning: Actions are judged by intentions, and each person will have what they intended.
ʿUmar ibn al-Khattab reports this saying from the Messenger of Allah ﷺ. For now, simply notice that a saying of the Prophet ﷺ has been transmitted to us.