Abu Hurairah reported,

The Messenger of Allah ﷺ said, "Have you not considered what your Lord has said? He said, 'I do not bestow any blessing upon My servants except that a group of them wakes up denying it, saying, The stars did this, and it was by the stars.'"

Azami 168

Sahih

عن أبي هريرة قال

قال رسول الله ﷺ: ألم تروا إلى ما قال ربكم؟ قال: ما أنعمت على عبادي من نعمة إلا أصبح فريق منهم بها كافرين يقولون: الكواكب وبالكواكب.

الأعظمي 168صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Faith
Chapter
Qualities of faith
Section
Explaining the use of the term "disbelief" for one who says, "We were given rain by the stars"
Numbering
Jami al-Kamil 168 (2nd edition)
Azami 168