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." (DE)
English reference (DE): Vol. 1, Book 46, Hadith 3823 (DE)
Arabic reference (DE): Book 49, Hadith 4194 (DE)