Sunan an-Nasa'i #1524
The Book of Praying for Rain (Al-Istisqa') 17:21
It was narrated that Abu Hurairah said:
"The Messenger of Allah (ﷺ) said: "Allah, the Mighty and Sublime, said: I have never sent down My favor to My slaves but a group of them became disbelievers who say; "The stars and by stars.'"