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 became believers in Me, and others disbelievers. Whoever said, We have been given rain by the grace and mercy of Allah, that one 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, that one is a disbeliever in Me and a believer in the stars.'"

Azami 13493

Sahih

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

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

الأعظمي 13493صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Tafsir of Surah Waqiah
Section
His saying, "Then I swear by the setting of the stars, and indeed it is an oath, if you could know, that is great. Indeed it is a noble Quran, in a Register well-protected. None touch it except the purified. A revelation from the Lord of the worlds. Then is it to this statement that you are indifferent?"
Numbering
Jami al-Kamil 13493 (2nd edition)
Azami 13493