English : Book 11, Hadith 1345
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
أَيُّمَا قَرْيَةٍ أَتَيْتُمُوهَا, فَأَقَمْتُمْ فِيهَا, فَسَهْمُكُمْ فِيهَا, وَأَيُّمَا قَرْيَةٍ عَصَتْ اَللَّهَ وَرَسُولَهُ, فَإِنْ خُمُسَهَا لِلَّهِ وَرَسُولِهِ , ثُمَّ هِيَ لَكُمْ"
Abu Hurairah (RAA) narrated that The Messenger of Allah (ﷺ) said:
"Whichever town you take peacefully (they surrendered without, fighting), and stay therein, you have a share in it (in whatever is obtained from it); and whichever town disobeys Allah and His Messenger, a fifth of (its booty) goes to Allah and His Messenger and what remains is yours. Related by Muslim.
Full reference and source
English : Book 11, Hadith 1345 Arabic : Book 11, Hadith 1319
View source on Sunnah.com (opens in a new tab)