كتاب الفضائل
43  
The Book of Virtues
(38)
Chapter: The Obligation To Obey What He Says With Regard To Matters Of Religion, But Not What He Says With Regard To Worldly Matters
(38)
باب وُجُوبِ امْتِثَالِ مَا قَالَهُ شَرْعًا دُونَ مَا ذَكَرَهُ صلى الله عليه وسلم مِنْ مَعَايِشِ الدُّنْيَا
Sahih Muslim 2363

Anas reported that Allah's Messenger (ﷺ) happened to pass by the people who had been busy in grafting the trees. Thereupon he said:

If you were not to do it, it might be good for you. (So they abandoned this practice) and there was a decline in the yield. He (the Holy Prophet) happened to pass by them (and said): What has gone wrong with your trees? They said: You said so and so. Thereupon he said: You have better knowledge (of a technical skill) in the affairs of the world.
حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، وَعَمْرٌو النَّاقِدُ، كِلاَهُمَا عَنِ الأَسْوَدِ بْنِ عَامِرٍ، - قَالَ أَبُو بَكْرٍ حَدَّثَنَا أَسْوَدُ بْنُ عَامِرٍ، - حَدَّثَنَا حَمَّادُ بْنُ سَلَمَةَ، عَنْ هِشَامِ بْنِ عُرْوَةَ، عَنْ أَبِيهِ، عَنْ عَائِشَةَ، وَعَنْ ثَابِتٍ، عَنْ أَنَسٍ، أَنَّ النَّبِيَّ صلى الله عليه وسلم مَرَّ بِقَوْمٍ يُلَقِّحُونَ فَقَالَ ‏"‏ لَوْ لَمْ تَفْعَلُوا لَصَلُحَ ‏"‏ ‏.‏ قَالَ فَخَرَجَ شِيصًا فَمَرَّ بِهِمْ فَقَالَ ‏"‏ مَا لِنَخْلِكُمْ ‏"‏ ‏.‏ قَالُوا قُلْتَ كَذَا وَكَذَا قَالَ ‏"‏ أَنْتُمْ أَعْلَمُ بِأَمْرِ دُنْيَاكُمْ ‏"‏ ‏.‏
Reference : Sahih Muslim 2363
In-book reference : Book 43, Hadith 186
USC-MSA web (English) reference : Book 30, Hadith 5832
  (deprecated numbering scheme)