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."' (ES)
English reference (ES): Vol. 3, Book 12, Hadith 2307 (ES)
Arabic reference (ES): Book 12, Hadith 2395 (ES)