(Imām Bukhārī narrates): Al-Hasan bin Muhammad narrated the hadith to us, he said: Muhammad bin Abdullah al-Ansari narrated the hadith to us, he said: My father Abdullah bin al-Muthanna narrated the hadith to me, from Thumamah bin Abdullah bin Anas, from Hazrat Anas (Allāh be pleased with him), that
"When famine came upon the people, Hazrat Umar bin al-Khattab (Allāh be pleased with him) sought rain through the means of Hazrat Abbas bin Abdul Muttalib, and made this supplication: 'O Allāh! We used to supplicate to You through the means of our Prophet, so You would send down rain upon us, and now we present to You the means of the uncle of our Prophet, so send down rain upon us.'" Then rain would be sent down upon them.
حَدَّثَنَا الحَسَنُ بْنُ مُحَمَّدٍ، قَالَ حَدَّثَنَا مُحَمَّدُ بْنُ عَبْدِ اللَّهِ الأَنْصَارِيُّ، قَالَ حَدَّثَنِي أَبِي عَبْدُ اللَّهِ بْنُ المُثَنَّى، عَنْ ثُمَامَةَ بْنِ عَبْدِ اللَّهِ بْنِ أَنَسٍ، عَنْ أَنَسِ بْنِ مَالِكٍ
أَنَّ عُمَرَ بْنَ الخَطَّابِ رَضِيَ اللَّهُ عَنْهُ، كَانَ إِذَا قَحَطُوا اسْتَسْقَى بِالعَبَّاسِ بْنِ عَبْدِ المُطَّلِبِ، فَقَالَ اللَّهُمَّ إِنَّا كُنَّا نَتَوَسَّلُ إِلَيْكَ بِنَبِيِّنَا فَتَسقينا، وَإِنَّا نَتَوَسَّلُ إِلَيْكَ بِعَمِّ نَبِينا فاسقِنَا
Reference: Sahih Al Bukhari 1010