It is narrated from Sayyiduna Abu Sa'id al-Khudri (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "If Allah Almighty were to withhold rain from people for seven years and then send it down, a group of people would deny this blessing and adopt disbelief, and they would say: We were given rain under the influence of al-Mijdah (a star)."
Imam Abu Bakr bin Abi Shaybah recorded this hadith, and Imam Ibn Hibban in his Sahih through his chain. Imam al-Nasa'i also recorded it, except that his narration mentions "five years" instead of seven.
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب صلاة الاستسقاء / 1630
Hadith Gradingمحدثین:أخرجه ابن حبان في صحيحه
Hadith Takhrij«أخرجه سنن النسائي برقم: 1526، وأخرجه مسند أحمد برقم: 10658، وأخرجه سنن الدارمي برقم: 2762، وأخرجه فتح الباري برقم: 991، وأخرجه صحيح ابن حبان برقم: 6130، وأخرجه شرح مشكل الآثار برقم: 5216»