Sahih al-Bukhari 3600
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
يَأْتِي عَلَى النَّاسِ زَمَانٌ تَكُونُ الْغَنَمُ فِيهِ خَيْرَ مَالِ الْمُسْلِمِ، يَتْبَعُ بِهَا شَعَفَ الْجِبَالِ ـ أَوْ سَعَفَ الْجِبَالِ ـ فِي مَوَاقِعِ الْقَطْرِ، يَفِرُّ بِدِينِهِ مِنَ الْفِتَنِ "
Narrated Sasaa:
Abu Sa`id Al-Khudri said to me, "I notice that you like sheep and you keep them; so take care of them and their food, for I have heard Allah's Messenger (ﷺ) saying, 'A time will come upon the people when the best of a Muslim's property will be sheep, which he will take to the tops of mountains and to the places of rain-falls to run away with his religion in order to save it from afflictions.' "
Full reference and source
Sahih al-Bukhari 3600 In-book : Book 61, Hadith 108 USC-MSA web (English) : Vol. 4, Book 56, Hadith 798 (deprecated)
View source on Sunnah.com (opens in a new tab)