Sahih al-Bukhari, Book 80, Hadith 102 (Bukhari 6168)

Narrated Abu Musa:

The Prophet (ﷺ) said, "The example of the one who celebrates the Praises of his Lord (Allah) in comparison to the one who does not celebrate the Praises of his Lord, is that of a living creature compared to a dead one."