Ash Shaykh Muhammad Bajamaal mentioned a benefit he asked his students:
“Disgracing and degrading knowledge is that a man teaches it to one who will not obey him/it”
He mentioned Imam Malik Ibn Anas said it.
He explained that the meaning is a man who has no concern for knowledge nor the commandments or prohibitions, and yet you want to teach him while he won’t obey you in that or pay concern to it.
He also mentioned that there is no problem with advising this type, but as to teach him and sit with him, teaching him, perhaps he will use that knowledge in the wrong way and mislead by it.
Thus one should not be given knowledge unless he has concern for it.
He also mentioned other benefits regarding it and mentioned the proof from the Quraan for this are the verses,
عَبَسَ وَتَوَلَّىٰ (1) أَن جَاءَهُ الْأَعْمَىٰ (2) وَمَا يُدْرِيكَ لَعَلَّهُ يَزَّكَّىٰ (3) أَوْ يَذَّكَّرُ فَتَنفَعَهُ الذِّكْرَىٰ (4) أَمَّا مَنِ اسْتَغْنَىٰ (5) فَأَنتَ لَهُ تَصَدَّىٰ (6) وَمَا عَلَيْكَ أَلَّا يَزَّكَّىٰ (7) . وَأَمَّا مَن جَاءَكَ يَسْعَىٰ (8) وَهُوَ يَخْشَىٰ(9) فَأَنتَ عَنْهُ تَلَهَّىٰ (10)
1. (The Prophet (ﷺ￼)) frowned and turned away,
2. Because there came to him the blind man (i.e. ‘Abdullah bin Umm-Maktum, who came to the Prophet (￼ﷺ) while he was preaching to one or some of the Quraish chiefs).
3. But what could tell you that per chance he might become pure (from sins)?
4. Or that he might receive admonition, and that the admonition might profit him?
5. As for him who thinks himself self-sufficient,
6. To him you attend;
7. What does it matter to you if he will not become pure (from disbelief, you are only a Messenger, your duty is to convey the Message of Allah).
8. But as to him who came to you running.
9. And is afraid (of Allah and His Punishment),
10. Of him you are neglectful and divert your attention to another
Majid Jawed Al-Afghanee