صحيح البخاري Sahih Bukhari كتاب الاستسقاء The Book of Al-Istisqa.
بَابُ دُعَاءِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «اجْعَلْهَا عَلَيْهِمْ سِنِينَ كَسِنِي يُوسُفَ»:

(2) Chapter. Invocation of the Prophet ﷺ: "O Allah! Send (drought-famine) years on them (pagans of Makkah) like the (drought-famine) years of (Prophet) Yusuf (Joseph)."

2 hadith
Hadith 1006
حَدَّثَنَا قُتَيْبَةُ ، حَدَّثَنَا مُغِيرَةُ بْنُ عَبْدِ الرَّحْمَنِ ، عَنْ أَبِي الزِّنَادِ ، عَنِ الْأَعْرَجِ ، عَنْ أَبِي هُرَيْرَةَ ، أَنّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ كَانَ إِذَا رَفَعَ رَأْسَهُ مِنَ الرَّكْعَةِ الْآخِرَةِ يَقُولُ : " اللَّهُمَّ أَنْجِ عَيَّاشَ بْنَ أَبِي رَبِيعَةَ ، اللَّهُمَّ أَنْجِ سَلَمَةَ بْنَ هِشَامٍ ، اللَّهُمَّ أَنْجِ الْوَلِيدَ بْنَ الْوَلِيدِ ، اللَّهُمَّ أَنْجِ الْمُسْتَضْعَفِينَ مِنَ الْمُؤْمِنِينَ ، اللَّهُمَّ اشْدُدْ وَطْأَتَكَ عَلَى مُضَرَ ، اللَّهُمَّ اجْعَلْهَا سِنِينَ كَسِنِي يُوسُفَ ، وَأَنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ ، قَالَ : غِفَارُ غَفَرَ اللَّهُ لَهَا وَأَسْلَمُ سَالَمَهَا اللَّهُ " ، قَالَ ابْنُ أَبِي الزِّنَادِ : عَنْ أَبِيهِ هَذَا كُلُّهُ فِي الصُّبْحِ .
Narrated Abu Huraira;: Whenever the Prophet (p.b.u.h) lifted his head from the bowing in the last rak`a he used to say: "O Allah! Save `Aiyash bin Abi Rabi`a. O Allah! Save Salama bin Hisham. O Allah! Save Walid bin Walid. O Allah! Save the weak faithful believers. O Allah! Be hard on the tribes of Mudar and send (famine) years on them like the famine years of (Prophet) Joseph ." The Prophet further said, "Allah forgive the tribes of Ghifar and save the tribes of Aslam." Abu Az-Zinad (a sub-narrator) said, "The Qunut used to be recited by the Prophet in the Fajr prayer."
Hadith Reference Sahih Bukhari / The Book of Al-Istisqa. / Hadith: 1006
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة
Hadith 1007
حَدَّثَنَا عُثْمَانُ بْنُ أَبِي شَيْبَةَ ، قَالَ : حَدَّثَنَا جَرِيرٌ ، عَنْ مَنْصُورٍ ، عَنْ أَبِي الضُّحَى ، عَنْ مَسْرُوقٍ ، قَالَ : كُنَّا عِنْدَ عَبْدِ اللَّهِ ، فَقَالَ : إِنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ لَمَّا رَأَى مِنَ النَّاسِ إِدْبَارًا ، قَالَ : " اللَّهُمَّ سَبْعٌ كَسَبْعِ يُوسُفَ ، فَأَخَذَتْهُمْ سَنَةٌ حَصَّتْ كُلَّ شَيْءٍ حَتَّى أَكَلُوا الْجُلُودَ وَالْمَيْتَةَ وَالْجِيَفَ وَيَنْظُرَ أَحَدُهُمْ إِلَى السَّمَاءِ فَيَرَى الدُّخَانَ مِنَ الْجُوعِ " ، فَأَتَاهُ أَبُو سُفْيَانَ ، فَقَالَ : يَا مُحَمَّدُ إِنَّكَ تَأْمُرُ بِطَاعَةِ اللَّهِ وَبِصِلَةِ الرَّحِمِ ، وَإِنَّ قَوْمَكَ قَدْ هَلَكُوا فَادْعُ اللَّهَ لَهُمْ ، قَالَ اللَّهُ تَعَالَى : فَارْتَقِبْ يَوْمَ تَأْتِي السَّمَاءُ بِدُخَانٍ مُبِينٍ إِلَى قَوْلِهِ إِنَّكُمْ عَائِدُونَ يَوْمَ نَبْطِشُ الْبَطْشَةَ الْكُبْرَى سورة الدخان آية 10 - 16 ، فَالْبَطْشَةُ : يَوْمَ بَدْرٍ وَقَدْ مَضَتِ الدُّخَانُ وَالْبَطْشَةُ وَاللِّزَامُ وَآيَةُ الرُّومِ .
Narrated Masruq: We were with `Abdullah and he said, "When the Prophet saw the refusal of the people to accept Islam he said, "O Allah! Send (famine) years on them for (seven years) like the seven years (of famine during the time) of (Prophet) Joseph." So famine overtook them for one year and destroyed every kind of life to such an extent that the people started eating hides, carcasses and rotten dead animals. Whenever one of them looked towards the sky, he would (imagine himself to) see smoke because of hunger. So Abu Sufyan went to the Prophet and said, "O Muhammad! You order people to obey Allah and to keep good relations with kith and kin. No doubt the people of your tribe are dying, so please pray to Allah for them." So Allah revealed: "Then watch you For the day that The sky will bring forth a kind Of smoke Plainly visible ... Verily! You will return (to disbelief) On the day when We shall seize You with a mighty grasp. (44.10-16) Ibn Mas`ud added, "Al-Batsha (i.e. grasp) happened in the battle of Badr and no doubt smoke, Al-Batsha, Al-Lizam, and the verse of Surat Ar-Rum have all passed .
Hadith Reference Sahih Bukhari / The Book of Al-Istisqa. / Hadith: 1007
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة