Answer: The Commander of the Believers, Abu Hafs ‘Umar ibn al-Khattāb ( may Allah be pleased with him) reported that he heard the Prophet (may Allah's peace and blessings be upon him) say: "Verily, the reward of deeds depends on the intentions, and each person will be rewarded according to what he intended. So, he whose migration is for the sake of Allah and His Messenger, then his migration is for the sake of Allah and His Messenger, and he whose migration is to achieve some worldly gain or to take some woman in marriage, then his migration is for that for which he migrated." [Narrated by Al-Bukhāri and Muslim]
Benefits of the Hadīth
1. Every deed requires an intention, such as prayer, fasting, pilgrimage, etc.
2. The intention must be dedicated with full sincerity to Allah Almighty.
Second Hadīth