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