It is narrated from Sayyiduna Zayd bin Khalid al-Juhani (may Allah be pleased with him); he said: We received rain in the time of the Messenger of Allah (peace and blessings be upon him). When morning came, he (peace and blessings be upon him) said: "Do you know what your Lord said last night? He said: 'I have not bestowed any blessing upon My servants except that a group of them became ungrateful for it; they say: We were given rain by the naw' of such-and-such a star. As for the one who believed in Me and praised Me for My rain, he has believed in Me and disbelieved in the star; and as for the one who said: We were given rain by the naw' of such-and-such a star, he has believed in the star and disbelieved in Me.'"
Hadith Referenceالمعجم الكبير للطبراني / باب الزاي / 5196