Sahih al-Bukhari 6495
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
يَأْتِي عَلَى النَّاسِ زَمَانٌ خَيْرُ مَالِ الرَّجُلِ الْمُسْلِمِ الْغَنَمُ، يَتْبَعُ بِهَا شَعَفَ الْجِبَالِ وَمَوَاقِعَ الْقَطْرِ، يَفِرُّ بِدِينِهِ مِنَ الْفِتَنِ "
Narrated Abu Sa`id:
I heard from the Prophet (ﷺ) saying, "There will come a time upon the people when the best property of a Muslim will be sheep which he will take to the tops of mountains and to the places of rainfall, run away with his religion (in order to save it) from afflictions."
Full reference and source
Sahih al-Bukhari 6495 In-book : Book 81, Hadith 84 USC-MSA web (English) : Vol. 8, Book 76, Hadith 502 (deprecated)
View source on Sunnah.com (opens in a new tab)