Anas bin Malik reported,

Whenever they suffered drought, Umar bin Khattab رضي الله عنه would seek rain through Abbas bin Abdul-Muttalib. He would say, "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 they would be given rain.

Bukhari 1010

Sahih

حدثنا الحسن بن محمد قال حدثنا محمد بن عبد الله الأنصاري قال حدثني أبي عبد الله بن المثنى عن ثمامة بن عبد الله بن أنس

عن أنس بن مالك

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

البخاري 1010صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Istisqa
Chapter
Asking the imam for rain prayer when people are afflicted by drought
Numbering
Darussalam 1010
Bukhari 1010