Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
suyuti:11401a

"Knowledge is ˹gained˺ through teaching, and forbearance/tolerance is ˹gained˺ through practicing forbearance. Whoever seeks ˹to do˺ good will be granted it, and whoever seeks protection from evil will be protected from it."  

Ibn ʿAsākir from Abū Hurayrah
السيوطي:١١٤٠١a

"الْعِلمُ بالتَّعَلُّم، والْحِلمُ بالتَّحلُّم، ومنْ يتَحرَّ الْخَير يُعْطَه، ومنْ يتَوقَّ الشَّرَّ يُوقَه ".  

[كر] ابن عساكر في تاريخه عن أَبي هريرة

See similar narrations below:

Collected by Suyūṭī
suyuti:7601a

"Knowledge is ˹gained˺ through teaching, and forbearance/tolerance is ˹gained˺ through practicing forbearance. Whoever seeks ˹to do˺ good will be granted it, and whoever seeks protection from evil will be protected from it."  

Abū Nuʿaym's al-Ḥalīlah, Dārquṭnī in al-Afrād, and Kaṭīb al-Baghdādī's al-Tārīkh from Abū Hurayrah
السيوطي:٧٦٠١a

"إِنَّما الْعِلْمُ بالتَّعَلُّم، وَإنَّمَا الْحِلْمُ بالتَّحَلُّم، وَمَنْ يَبْتَغِى الْخَيْرَ يُعْطَهُ، وَمَنْ يَتَّقِ الشَّرَّ يُوَقُّهُ ".  

[حل] أبى نعيم في الحلية [قط] الدارقطنى في السنن في الأَفراد، والخطيب عن أَبى هريرة