Anas bin Malik reported,

Whenever they suffered drought, Umar bin Khattab would seek rain through Abbas bin Abdul-Muttalib, saying, "O Allah, we used to seek means to You through our Prophet and You would give us rain. Now we seek means to You through the uncle of our Prophet, so give us rain."And so they would be given rain.

Azami 2970

Sahih

عن أنس

أن عمر بن الخطاب كان إذا قحطوا استسقى بالعباس بن عبد المطلب فقال: اللهم إنا كنا نتوسل إليك بنبينا فتسقينا، وإنا نتوسل إليك بعم نبينا فاسقنا. قال: فيسقون.

الأعظمي 2970صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Prayer for rain
Section
Recommendation of seeking rain through some of the Prophet's ﷺ righteous relatives
Numbering
Jami al-Kamil 2970 (2nd edition)
Azami 2970