حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا أَبُو خَالِدٍ الأَحْمَرُ، عَنِ ابْنِ عَجْلاَنَ، عَنْ سَعِيدِ بْنِ أَبِي سَعِيدٍ، عَنْ أَبِي هُرَيْرَةَ، قَالَ كَانَ مِنْ دُعَاءِ النَّبِيِّ ـ صلى الله عليه وسلم ـ ‏"‏ اللَّهُمَّ إِنِّي أَعُوذُ بِكَ مِنْ عِلْمٍ لاَ يَنْفَعُ وَمِنْ دُعَاءٍ لاَ يُسْمَعُ وَمَنْ قَلْبٍ لاَ يَخْشَعُ وَمِنْ نَفْسٍ لاَ تَشْبَعُ ‏"‏ ‏.‏
Copy
It was narrated from Jabir bin 'Abdullah that

The Prophet said: "Do not seek knowledge in order to show off in front of the scholars, or to argue with the foolish, and do not choose the best seat in a gathering, due to it (i.e. the knowledge which you have learned) for whoever does that, the Fire, the Fire (awaits him)."