كتاب الإيمان
1  
The Book of Faith
(32)
Chapter: Clarifying the Kufr of one who says: "We got rain because of the stars."
(32)
باب بَيَانِ كُفْرِ مَنْ قَالَ مُطِرْنَا بِالنَّوْءِ ‏
Sahih Muslim 72 b

It is reported on the authority of Abu Huraira that the Messenger of Allah (may peace and blessing be upon him) observed:

Allah does not shower His blessings from the heaven that in the morning a group of men disbelieve it (to be a blessing from Allah). Allah sends down rain, but they (the disbelievers) say: Such and such star (is responsible for that).
وَحَدَّثَنِي مُحَمَّدُ بْنُ سَلَمَةَ الْمُرَادِيُّ، حَدَّثَنَا عَبْدُ اللَّهِ بْنُ وَهْبٍ، عَنْ عَمْرِو بْنِ الْحَارِثِ، ح وَحَدَّثَنِي عَمْرُو بْنُ سَوَّادٍ، أَخْبَرَنَا عَبْدُ اللَّهِ بْنُ وَهْبٍ، أَخْبَرَنَا عَمْرُو بْنُ الْحَارِثِ، أَنَّ أَبَا يُونُسَ، مَوْلَى أَبِي هُرَيْرَةَ حَدَّثَهُ عَنْ أَبِي هُرَيْرَةَ، عَنْ رَسُولِ اللَّهِ صلى الله عليه وسلم قَالَ ‏"‏ مَا أَنْزَلَ اللَّهُ مِنَ السَّمَاءِ مِنْ بَرَكَةٍ إِلاَّ أَصْبَحَ فَرِيقٌ مِنَ النَّاسِ بِهَا كَافِرِينَ يُنْزِلُ اللَّهُ الْغَيْثَ فَيَقُولُونَ الْكَوْكَبُ كَذَا وَكَذَا ‏"‏ وَفِي حَدِيثِ الْمُرَادِيِّ ‏"‏ بِكَوْكَبِ كَذَا وَكَذَا ‏"‏ ‏.‏
Reference : Sahih Muslim 72b
In-book reference : Book 1, Hadith 139
USC-MSA web (English) reference : Book 1, Hadith 134
  (deprecated numbering scheme)