He said that the Messenger of Allah ﷺ led us in the dawn prayer at Hudaybiyyah following 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 said, 'This morning some of My servants have become believers in Me and others disbelievers. Whoever said, "We have been given rain by the grace and mercy of Allah," 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," is a disbeliever in Me and a believer in the stars.'"
أنه قال: صلى لنا رسول الله ﷺ صلاة الصبح بالحديبية على إثر سماء كانت من الليل. فلما انصرف أقبل على الناس، فقال: أتدرون ماذا قال ربكم؟ قالوا: الله ورسوله أعلم. قال: قال: أصبح من عبادي مؤمن بي وكافر بي. فأما من قال: مطرنا بفضل الله ورحمته فذلك مؤمن بي، كافر بالكوكب. وأما من قال: مطرنا بنوء كذا وكذا، فذلك كافر بي، مؤمن بالكوكب.
Malik narrated it in the chapter on the prayer for rain (4), from Salih bin Kaysan, from Ubaydullah bin Abdullah bin Utbah bin Masud, from Zayd bin Khalid, and mentioned it.Bukhari narrated it in the chapter on adhan (846) from Abdullah bin Maslama, and Muslim narrated it in the chapter on faith (71) from Yahya bin Yahya, both of them from Malik, with the same chain, similarly.Regarding his word naw, Ibn Salah said, "In its origin it does not refer to the star itself, for it is the verbal noun of naa an-najm yanoo nawan, meaning it fell and set. It is also said to mean it rose and appeared."He then said, "The star itself may also be called naw, naming the doer after the verbal noun. Abu Ishaq Zajjaj said in one of his dictations, 'Those that set in the Maghrib are the anwa, and those that rise in the east are the bawarih.'"Siyanat Sahih Muslim (pp. 246–247).