Hadithcore
Musnad Ahmad, 1087
sahih· Darussalam

It was narrated from ‘Ali (رضي الله عنه) that the Prophet (ﷺ) said:

“ ‘And have you made it your livelihood’ i.e., your gratitude `that you should declare it false?` [Al-Waqi`ah 56:82].” Then he said: `(That is when) you say, `We were given rain by such-and-such a star.”

حَدَّثَنَا عَبْد اللَّهِ، حَدَّثَنَا إِسْحَاقُ بْنُ إِسْمَاعِيلَ، حَدَّثَنَا يَحْيَى بْنُ أَبِي بُكَيْرٍ، عَنْ إِسْرَائِيلَ، عَنْ عَبْدِ الْأَعْلَى، عَنْ أَبِي عَبْدِ الرَّحْمَنِ، عَنْ عَلِيٍّ، رَضِيَ اللَّهُ عَنْهُ عَنْ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ ‏{‏وَتَجْعَلُونَ رِزْقَكُمْ‏}‏ قَالَ شُكْرَكُمْ ‏{‏أَنَّكُمْ تُكَذِّبُونَ‏}‏ قَالَ تَقُولُونَ مُطِرْنَا بِنَوْءِ كَذَا وَكَذَا‏.‏

References1 variant
In-Book Reference
Book 5, Hadith 504