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 the Prophet ﷺ finished, he turned to the people and asked, "Do you know what your Lord has said?"They replied, "Allah and His Messenger know best."He 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,' 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."

Bukhari 1038

Sahih

حدثنا إسماعيل حدثني مالك عن صالح بن كيسان عن عبيد الله بن عبد الله بن عتبة بن مسعود

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

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

البخاري 1038صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Istisqa
Chapter
His saying, "And you make your provision that you deny"
Numbering
Darussalam 1038
Bukhari 1038