Abu Huraira reported: The Prophet, peace and blessings be upon him, said, “Verily, knowledge only comes by learning and forbearance only comes by cultivating forbearance. Whoever aims for good will receive goodness and whoever seeks to evade evil will be protected from it.”
Source: Tārīkh Baghdād 9/129
Grade: Hasan (fair) according to Al-Albani
عَنْ أَبِي هُرَيْرَةَ عَنْ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ إِنَّمَا الْعِلْمُ بِالتَّعَلُّمِ وَإِنَّمَا الْحِلْمُ بِالتَّحَلُّمِ وَمَنْ يَتَحَرَّ الْخَيْرَ يُعْطَهُ وَمَنْ يَتَوَقَّ الشَّرَّ يُوقَهُ
9/129 تاريخ بغداد
2328 المحدث الألباني خلاصة حكم المحدث حسن في صحيح الجامع