I took this hadith from the tafsir of Ibn Kathir. This hadith is one of the explanation of ayahs taken from Surah Ad-duha.
﴿ وَأَمَّا بِنِعۡمَةِ رَبِّكَ فَحَدِّثۡ ﴾
(And proclaim the grace of your Lord.) meaning, `just as you were poor and needy, and Allah made you wealthy, then tell about Allah's favor upon you.' Abu Dawud recorded from Abu Hurayrah that the Prophet said,
« لَا يَشْكُرُ اللهَ مَنْ لَا يَشْكُرُ النَّاس »
(Whoever is not thankful to the people, then he is not thankful to Allah.) At-Tirmidhi also recorded this Hadith and he said, "Sahih''. Abu Dawud recorded from Jabir that the Prophet said,
« مَنْ أُبْلِيَ بَلَاءً فَذَكَرَهُ فَقَدْ شَكَرَهُ، وَمَنْ كَتَمَهُ فَقَدْ كَفَرَه »
(Whoever overcomes some test (i.e., calamity) and mentions it (to others), then he is indeed thankful. And whoever conceals it, then indeed he was ungrateful.) Abu Dawud was alone in recording this Hadith. This is the end of the Tafsir of Surat Ad-Duha, and unto Allah is due all praise and thanks.