2.42 What is said regarding the statement: "The reward of deeds depends upon the intention and hoping to get rewards from Allah."
٢۔٤٢ باب مَا جَاءَ أَنَّ الأَعْمَالَ بِالنِّيَّةِ وَالْحِسْبَةِ وَلِكُلِّ امْرِئٍ مَا نَوَى
[Machine] Faith, ablution, prayer, charity, pilgrimage, fasting, and rulings all entered into it. And Allah the Exalted said: "Say, each [one of them] works upon his intention." (Quran 17:84) The expenditure of a man upon his family is considered as charity. And he also said: "But [it is] jihad and intention."
فَدَخَلَ فِيهِ الإِيمَانُ وَالْوُضُوءُ وَالصَّلاَةُ وَالزَّكَاةُ وَالْحَجُّ وَالصَّوْمُ وَالأَحْكَامُ. وَقَالَ اللَّهُ تَعَالَى: {قُلْ كُلٌّ يَعْمَلُ عَلَى شَاكِلَتِهِ} عَلَى نِيَّتِهِ. «نَفَقَةُ الرَّجُلِ عَلَى أَهْلِهِ يَحْتَسِبُهَا صَدَقَةٌ». وَقَالَ: «وَلَكِنْ جِهَادٌ وَنِيَّةٌ».