Hadith 13

Sahih Bukhari

Book 49: Manumission of Slaves

Chapter 6

Manumission and divorce by mistake or forgetfulness

باب الْخَطَإِ وَالنِّسْيَانِ فِي الْعَتَاقَةِ وَالطَّلاَقِ وَنَحْوِهِ، وَلاَ عَتَاقَةَ إِلاَّ لِوَجْهِ اللَّهِ

The Prophet ﷺ said, "Everybody will get the reward according to what he has intended." Doing things by forgetfulness or by mistake is not regarded as intentional action.
وَقَالَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «لِكُلِّ امْرِئٍ مَا نَوَى» وَلاَ نِيَّةَ لِلنَّاسِي وَالْمُخْطِئِ.
Sahih al-Bukhari 2529
حَدَّثَنَا مُحَمَّدُ بْنُ كَثِيرٍ، عَنْ سُفْيَانَ، حَدَّثَنَا يَحْيَى بْنُ سَعِيدٍ، عَنْ مُحَمَّدِ بْنِ إِبْرَاهِيمَ التَّيْمِيِّ، عَنْ عَلْقَمَةَ بْنِ وَقَّاصٍ اللَّيْثِيِّ، قَالَ سَمِعْتُ عُمَرَ بْنَ الْخَطَّابِ ـ رضى الله عنه ـ عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ ‏ ‏‏.‏
"‏ الأَعْمَالُ بِالنِّيَّةِ، وَلاِمْرِئٍ مَا نَوَى، فَمَنْ كَانَتْ هِجْرَتُهُ إِلَى اللَّهِ وَرَسُولِهِ، فَهِجْرَتُهُ إِلَى اللَّهِ وَرَسُولِهِ، وَمَنْ كَانَتْ هِجْرَتُهُ لِدُنْيَا يُصِيبُهَا، أَوِ امْرَأَةٍ يَتَزَوَّجُهَا، فَهِجْرَتُهُ إِلَى مَا هَاجَرَ إِلَيْهِ ‏"
`Umar bin Al-Khattab:

The Prophet (ﷺ) said, "The (reward of) deeds depend on intentions, and every person will get the reward according to what he intends. So, whoever migrated for Allah and His Apostle, then his migration will be for Allah and His Apostle, and whoever migrated for worldly benefits or for marrying a woman, then his migration will be for what he migrated for." (See Hadith No. 1, Vol. 1)