Narrated Ibn 'Abbas:
"The Messenger of Allah (ﷺ) supplicated for me that Allah should give me Al-Hukm (knowledge, understanding, judging justly, or understanding of the Qur'an) two times." (JA)
English reference (JA): Vol. 1, Book 46, Hadith 3823 (JA)
Arabic reference (JA): Book 49, Hadith 4194 (JA)