Al-Ilmam bi-Ahadith al-Ahkam 420
وَعَن أنس رَضِيَ اللَّهُ عَنْه، أَن عمر بن الْخطاب كَانَ إِذا قحطوا استسقى بِالْعَبَّاسِ بن عبد الْمطلب، فَقَالَ: اللَّهُمَّ إِنَّا كُنَّا نتوسل إِلَيْك بنبينا ﷺ فتسقينا، اللَّهُمَّ وَإِنَّا الْيَوْم نتوسل إِلَيْك بعم نَبينَا ﷺ ، فأسقنا، قَالَ فيسقون.
And from Anas, may Allah be pleased with him, that when they suffered drought, ʿUmar ibn al-Khattab would ask for rain through al-ʿAbbas ibn ʿAbd al-Muttalib, and say: "O Allah, we used to seek nearness to You through our Prophet ﷺ and You would give us rain. O Allah, and today we seek nearness to You through the uncle of our Prophet ﷺ, so give us rain." He said: And they would be given rain.