Hadithcore
Al-Adab Al-Mufrad, 416
sahih· Al-Albani

Ibn 'Umar saw a shepherd with some sheep in a bad place and saw a place which was better than it. He told him, "Woe to you, shepherd! Move them! I heard the Messenger of Allah, (ﷺ), say, 'Every shepherd is responsible for his flock.'"

حَدَّثَنَا عَمْرُو بْنُ خَالِدٍ، قَالَ‏:‏ حَدَّثَنَا بَكْرٌ، عَنِ ابْنِ عَجْلاَنَ، أَنَّ وَهْبَ بْنَ كَيْسَانَ أَخْبَرَهُ، وَكَانَ وَهْبٌ أَدْرَكَ عَبْدَ اللهِ بْنَ عُمَرَ، أَنَّ ابْنَ عُمَرَ رَأَى رَاعِيًا وَغَنَمًا فِي مَكَانٍ قَبِيحٍ وَرَأَى مَكَانًا أَمْثَلَ مِنْهُ، فَقَالَ لَهُ‏:‏ وَيْحَكَ، يَا رَاعِي، حَوِّلْهَا، فَإِنِّي سَمِعْتُ رَسُولَ اللهِ صلى الله عليه وسلم يَقُولُ‏:‏ كُلُّ رَاعٍ مَسْئُولٌ عَنْ رَعِيَّتِهِ‏.‏

References2 variants
In-Book Reference
Book 23, Hadith 2
English Reference
Book 23, Hadith 416