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.
tabarani:12684ʿAbdān b. Aḥmad > ʿAbd al-Raḥman b. Khālid al-Raqqī > Muʿāwiyah b. Hishām > Sufyān > Ḥabīb b. Abū Thābit > Ibn ʿAbbās

[Machine] The Prophet ﷺ sent an army and its flag was returned, so he sent another and its flag was returned with the head of a golden deer. And then the verse was revealed (And it is not for any prophet to embezzle).  

الطبراني:١٢٦٨٤حَدَّثَنَا عَبْدَانُ بْنُ أَحْمَدَ ثنا عَبْدُ الرَّحْمَنِ بْنُ خَالِدٍ الرَّقِّيُّ ثنا مُعَاوِيَةُ بْنُ هِشَامٍ ثنا سُفْيَانُ عَنْ حَبِيبِ بْنِ أَبِي ثَابِتٍ عَنِ ابْنِ عَبَّاسٍ قَالَ

بَعَثَ نَبِيُّ اللهِ ﷺ «جَيْشًا فَرُدَّتْ رَايَتُهُ ثُمَّ بَعَثَ فَرُدَّتْ بِغُلُولِ رَأْسِ غَزَالٍ مِنْ ذَهَبٍ» فَنَزَلَتْ {وَمَا كَانَ لِنَبِيٍّ أَنْ يَغُلَّ}