أَخْبَرَنَا سُلَيْمَانُ بْنُ حَرْبٍ، عَنْ عُمَارَةَ بْنِ مِهْرَانَ، عَنْ الْحَسَنِ، قَالَ: "أَدْرَكْتُ النَّاسَ وَالنَّاسِكُ إِذَا نَسَكَ لَمْ يُعْرَفْ مِنْ قِبَلِ مَنْطِقِهِ، وَلَكِنْ يُعْرَفُ مِنْ قِبَلِ عَمَلِهِ، فَذَلِكَ الْعِلْمُ النَّافِعُ".
It is narrated from ‘Imarah bin Mihran that Imam Hasan (may Allah have mercy on him) said: I found such a group that when any worshipper among them would worship, it could not be known from his speech, but they would be recognized by their actions. This is the beneficial knowledge.
Brief Explanation
(Commentary on Ahadith 556 to 558)
That is, only that knowledge is beneficial with which there is action; furthermore, ostentation and showing off (riya wa numood) render the deed void.