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:12757Abū ʿAbdullāh al-Ḥāfiẓ > Abū al-ʿAbbās Muḥammad b. Yaʿqūb > Aḥmad b. ʿAbd al-Jabbār > Yūnus b. Bukayr > Muḥammad b. Isḥāq b. Yasār

[Machine] And the Messenger of Allah ﷺ continued until he exited from a narrow pass called As-Saffraa and exited to a sandy area called Sayr, at a distance of a night's journey from Badr or more. The Messenger of Allah ﷺ distributed the spoils among the Muslims on that sandy area. Ash-Shafi'i said, "Whoever is around Sayr and its people are idolaters." The Messenger of Allah ﷺ also distributed the wealth of Banu Mustaliq and their prisoners in the same place where it was seized, before he departed from it, and everything around it was land of polytheism. And most of what the Messenger of Allah ﷺ and his commanders distributed was from the land of the enemy.  

البيهقي:١٢٧٥٧أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ ثنا أَبُو الْعَبَّاسِ مُحَمَّدُ بْنُ يَعْقُوبَ ثنا أَحْمَدُ بْنُ عَبْدِ الْجَبَّارِ ثنا يُونُسُ بْنُ بُكَيْرٍ عَنْ مُحَمَّدِ بْنِ إِسْحَاقَ بْنِ يَسَارٍ قَالَ

وَمَضَى رَسُولُ اللهِ ﷺ فَلَمَّا خَرَجَ مِنْ مَضِيقٍ يُقَالُ لَهُ الصَّفْرَاءُ خَرَجَ مِنْهُ إِلَى كَثِيبٍ يُقَالُ لَهُ سَيْرٌ عَلَى مَسِيرَةِ لَيْلَةٍ مِنْ بَدْرٍ أَوْ أَكْثَرَ فَقَسَمَ رَسُولُ اللهِ ﷺ النَّفْلَ بَيْنَ الْمُسْلِمِينَ عَلَى ذَلِكَ الْكَثِيبِ قَالَ الشَّافِعِيُّ وَمَنْ حَوْلَ سَيْرٍ وَأَهْلُهُ مُشْرِكُونَ قَالَ الشَّافِعِيُّ وَقَسَمَ رَسُولُ اللهِ ﷺ أَمْوَالَ بَنِي الْمُصْطَلِقِ وَسَبْيَهُمْ فِي الْمَوْضِعِ الَّذِي غَنِمَهَا فِيهِ قَبْلَ أَنْ يَتَحَوَّلَ عَنْهُ وَمَا حَوْلَهُ كُلُّهُ بِلَادُ شِرْكٍ وَأَكْثَرُ مَا قَسَمَ رَسُولُ اللهِ ﷺ وَأُمَرَاءُ سَرَايَاهُ مَا غَنِمُوا بِبِلَادِ أَهْلِ الْحَرْبِ