The Prophet ﷺ said:
إِنَّمَا الأَعْمَالُ بِالنِّيَّاتِ (Sahih al-Bukhari: 1)
Translation: Actions are judged by intentions.
Umar heard this saying from the Prophet ﷺ and reported it to others.
• The saying is the Prophet's ﷺ.
• Umar heard and reported it.