أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ، قَالَ: سَمِعْتُ أَبَا جَعْفَرٍ مُحَمَّدَ بْنَ صَالِحِ بْنِ هَانِئٍ يَقُولُ: سَمِعْتُ أَبَا عَمْرٍو الْمُسْتَمْلِيَ، يَقُولُ: سَمِعْتُ الْحُسَيْنَ بْنَ مَنْصُورٍ يَقُولُ: سَمِعْتُ عَبْدَ الرَّحْمَنِ بْنَ مَهْدِيٍّ يَقُولُ: " يُكْتَبُ الْعِلْمُ عَنْ أَصْحَابِ الْأَهْوَاءِ، وَتَجُوزُ شَهَادَاتُهُمْ مَا لَمْ يَدْعُوا إِلَيْهِ، فَإِذَا دَعَوْا إِلَيْهِ لَمْ يُكْتَبْ عَنْهُمْ، وَلَمْ تَجُزْ شَهَادَاتُهُمْ "، يُرِيدُ بِكَتَبَةِ الْعِلْمِ: الْأَخْبَارَ.
Abd al-Rahman bin Mahdi (may Allah have mercy on him) said: Knowledge is to be taken from the people of desires (ahl al-ahwa'), and their testimony is permissible, as long as they do not call people to their creed; when they call to their creed, hadiths are not to be written from them, nor is their testimony permissible.
By 'writing knowledge' he meant the reports (akhbar).