باب الْخَطَإِ وَالنِّسْيَانِ فِي الْعَتَاقَةِ وَالطَّلاَقِ وَنَحْوِهِ، وَلاَ عَتَاقَةَ إِلاَّ لِوَجْهِ اللَّهِ
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.
وَقَالَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «لِكُلِّ امْرِئٍ مَا نَوَى» وَلاَ نِيَّةَ لِلنَّاسِي وَالْمُخْطِئِ.