the Messenger of Allah said: "Ask Allah for beneficial knowledge and seek refuge with Allah from knowledge that is of no benefit."
قَالَ رَسُولُ اللَّهِ ﷺ سَلُوا اللَّهَ عِلْمًا نَافِعًا وَتَعَوَّذُوا بِاللَّهِ مِنْ عِلْمٍ لاَ يَنْفَعُ
the Messenger of Allah said: "Ask Allah for beneficial knowledge and seek refuge with Allah from knowledge that is of no benefit."
قَالَ رَسُولُ اللَّهِ ﷺ سَلُوا اللَّهَ عِلْمًا نَافِعًا وَتَعَوَّذُوا بِاللَّهِ مِنْ عِلْمٍ لاَ يَنْفَعُ
[Machine] I heard the Messenger of Allah ﷺ say, "O Allah, I ask You for beneficial knowledge and seek refuge in You from knowledge that is of no benefit."
سَمِعْتُ رَسُولَ اللَّهِ ﷺ يَقُولُ «اللَّهُمَّ إِنِّي أَسْأَلُكَ عِلْمًا نَافِعًا وَأَعُوذُ بِكَ مِنْ عِلْمٍ لَا يَنْفَعُ»
"سَلُوا اللهَ عِلمًا نَافِعًا, وَتَعَوَّذُوا بِاللهِ مِنْ عِلْم لَا يَنْفَعُ"
"تَعَوَّذُوا بِاللَّه مِنْ عِلْمٍ لَا يَنْفَعْ".