Zayd bin Khalid reported,

The Messenger of Allah ﷺ led us in the dawn prayer at Hudaybiyah following a rainfall that had occurred during the night. When he finished, he turned to face the people and asked, "Do you know what your Lord has said?"They replied, "Allah and His Messenger know best."He said, "He has said, 'This morning some of My servants believe in Me and others disbelieve in Me. Whoever said, "We have been given rain by the grace and mercy of Allah," he is a believer in Me and a disbeliever in the stars. But whoever said, "We have been given rain by such and such a star," he is a disbeliever in Me and a believer in the stars.'"

Azami 12912

Sahih

عن زيد بن خالد الجهني، أنه قال

صلي لنا رسول الله ﷺ صلاة الصبح بالحديبية على إثر سماء كانت من الليل، فلما انصرف أقبل على الناس، فقال: أتدرون ماذا قال ربكم؟ قالوا: الله ورسوله أعلم. قال: قال: أصبح من عبادي مؤمن بي وكافر بي، فأما من قال: مطرنا بفضل الله ورحمته فذلك مؤمن بي كافر بالكوكب، وأما من قال: مطرنا بنوء كذا وكذا فذلك كافر بي مؤمن بالكوكب.

الأعظمي 12912صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Tafsir of Surah Furqan
Section
His saying, "And it is He who sends the winds as good tidings before His mercy, and We send down from the sky purifying water, that We may bring to life thereby a dead land and give it as drink to those We created of numerous livestock and people. And We have certainly distributed it among them that they might be reminded, but most of the people refuse except disbelief"
Numbering
Jami al-Kamil 12912 (2nd edition)
Azami 12912