It was narrated that Abu Hurairah said:
"The Messenger of Allah (ﷺ) commanded the rich to keep sheep, and he commanded the poor to keep chickens, and he said: 'When the rich keep chickens, then Allah will give permission for the town to be destroyed."' (IT)
English reference (IT): Vol. 3, Book 12, Hadith 2307 (IT)
Arabic reference (IT): Book 12, Hadith 2395 (IT)