Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:12947ʿAlī b. Aḥmad b. ʿAbdān > Aḥmad b. ʿUbayd al-Ṣaffār > Isḥāq b. al-Ḥasan al-Ḥarbī > Aḥmad b. Yūnus > Zuhayr > al-Ḥasan b. al-Ḥur > al-Ḥakam > ʿAmr b. Shuʿayb from his father from his grandfather

[Machine] That the Messenger of Allah ﷺ used to perform the optional prayer before the revelation of the verse on the spoils of war. But when the verse was revealed, he stopped performing the optional prayer that he used to perform. And this was in relation to the one-fifth share of Allah and the Prophet ﷺ . It has been narrated from Sa'id ibn al-Musayyib that he said: "People used to give the optional prayer from the one-fifth share."  

البيهقي:١٢٩٤٧أَخْبَرَنَا عَلِيُّ بْنُ أَحْمَدَ بْنِ عَبْدَانَ أنا أَحْمَدُ بْنُ عُبَيْدٍ الصَّفَّارُ ثنا إِسْحَاقُ بْنُ الْحَسَنِ الْحَرْبِيُّ ثنا أَحْمَدُ بْنُ يُونُسَ ثنا زُهَيْرٌ ثنا الْحَسَنُ بْنُ الْحُرِّ ثنا الْحَكَمُ عَنْ عَمْرِو بْنِ شُعَيْبٍ عَنْ أَبِيهِ عَنْ جَدِّهِ

أَنَّ رَسُولَ اللهِ ﷺ كَانَ يُنَفِّلُ قَبْلَ أَنْ تَنْزِلَ يَعْنِي الْآيَةَ فِي الْمَغْنَمِ فَلَمَّا نَزَلَتْ تَرَكَ النَّفْلَ الَّذِي كَانَ يُنَفِّلُ فَصَارَ ذَلِكَ فِي خُمُسِ الْخُمُسِ وَهُوَ سَهْمُ اللهِ ﷻ وَسَهْمُ النَّبِيِّ ﷺ وَرُوِّينَا عَنْ سَعِيدِ بْنِ الْمُسَيِّبِ أَنَّهُ قَالَ كَانَ النَّاسُ يُعْطَوْنَ النَّفْلَ مِنَ الْخُمُسِ  


See similar narrations below:

Collected by Bayhaqī
bayhaqi:12811ʿAlī b. Muḥammad b. ʿAbdullāh b. Bishrān> Abū Jaʿfar Muḥammad b. ʿAmr al-Razzāz > Ḥanbal b. Isḥāq > Abū Nuʿaym al-Faḍl b. Dukayn > Zuhayr > al-Ḥasan b. al-Ḥur > al-Ḥakam > ʿAmr b. Shuʿayb from his father from his grandfather

[Machine] That the Messenger of Allah ﷺ used to perform a voluntary prayer before the obligation of the fifth of the spoils of war. When the verse was revealed "And know that anything you obtain of war booty - then indeed, for Allah is one fifth of it" [Surah Al-Anfal 41], he left the voluntary prayer that he used to perform and it became one fifth of one fifth for Allah's share and one fifth for the Prophet's share ﷺ.  

البيهقي:١٢٨١١أَخْبَرَنَا عَلِيُّ بْنُ مُحَمَّدِ بْنِ عَبْدِ اللهِ بْنِ بِشْرَانَ بِبَغْدَادَ أنا أَبُو جَعْفَرٍ مُحَمَّدُ بْنُ عَمْرٍو الرَّزَّازُ ثنا حَنْبَلُ بْنُ إِسْحَاقَ ثنا أَبُو نُعَيْمٍ الْفَضْلُ بْنُ دُكَيْنٍ ثنا زُهَيْرٌ ثنا الْحَسَنُ بْنُ الْحُرِّ ثنا الْحَكَمُ عَنْ عَمْرِو بْنِ شُعَيْبٍ عَنْ أَبِيهِ عَنْ جَدِّهِ

أَنَّ رَسُولَ اللهِ ﷺ كَانَ يُنَفِّلُ قَبْلَ أَنْ تَنْزِلَ فَرِيضَةُ الْخُمُسِ فِي الْمَغْنَمِ فَلَمَّا نَزَلَتِ الْآيَةُ {أَنَّمَا غَنِمْتُمْ مِنْ شَيْءٍ فَأَنَّ لِلَّهِ خُمُسَهُ} [الأنفال 41] تَرَكَ النَّفْلَ الَّذِي كَانَ يُنَفِّلُ وَصَارَ ذَلِكَ إِلَى خُمُسِ الْخُمُسِ مِنْ سَهْمِ اللهِ وَسَهْمِ النَّبِيِّ ﷺ