Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) narrates that the Messenger of Allah (peace and blessings be upon him) placed his blessed hand on my shoulder, or (the narrator Sa'id (may Allah have mercy on him) was in doubt) on my upper shoulder, and supplicated: "O Allah, grant him deep understanding of the religion and teach him the interpretation (of the Book of Allah)."
Imam Ahmad (may Allah have mercy on him) also narrated this hadith through Yahya bin Adam (may Allah have mercy on him) from Zuhayr (may Allah have mercy on him),
and also through Abd al-Samad (may Allah have mercy on him) from Hammad (may Allah have mercy on him).
Imam al-Bukhari and Imam Muslim (may Allah have mercy on them both) recorded it through the narration of Ubaydullah bin Abi Yazid al-Makki (may Allah have mercy on him) from Sayyiduna Ibn Abbas (may Allah be pleased with them both), who said: "The Prophet (peace and blessings be upon him) went to relieve himself, so I placed water for ablution for him (peace and blessings be upon him). When he (peace and blessings be upon him) came out, he asked: 'Who placed this?' It was said: 'Ibn Abbas.' So he (peace and blessings be upon him) supplicated: 'O Allah, grant him understanding of the religion.'" (These two Imams did not record the words "and teach him the interpretation", and this is a good addition.)