Sunan al-Darimi 110
أَخْبَرَنَا إِسْمَاعِيلُ بْنُ أَبَانَ، حَدَّثَنَا حَاتِمٌ هُوَ ابْنُ إِسْمَاعِيلَ، عَنْ عِيسَى، عَنِ الشَّعْبِيِّ، قَالَ: «إِيَّاكُمْ وَالْمُقَايَسَةَ، وَالَّذِي نَفْسِي بِيَدِهِ لَئِنْ أَخَذْتُمْ بِالْمُقَايَسَةِ لَتُحِلُّنَّ الْحَرَامَ وَلَتُحَرِّمُنَّ الْحَلَالَ، وَلَكِنْ مَا بَلَغَكُمْ عَمَّنْ حَفِظَ مِنْ أَصْحَابِ مُحَمَّدٍ ﷺ فَاعْمَلُوا بِهِ»
Ismaʿil ibn Aban informed us; Hatim, he is Ibn Ismaʿil, narrated to us, from ʿIsa, from ash-Shaʿbi, who said: "Beware of analogy. By the One in whose hand is my soul, if you adopt analogy, you will make lawful the unlawful and make unlawful the lawful. Rather, whatever reaches you from those of the Companions of Muhammad ﷺ who memorised [the knowledge], act upon it."