Jami` at-Tirmidhi, Book 47, Hadith 347 (Tirmidhi 3379)

Abu Abdur-Rahman narrated from Ali that :

the Messenger of Allah said: And you make your provision your demise! – he said: “Your gratitude is expressed by saying: ‘We received rain because of this and that celestial position, and because of this and that star.’”