It is narrated from Sayyiduna Anas (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) passed by a dead young goat and said to the people: "Do you see that this has become worthless in the eyes of its owners?" They said: "Yes, O Messenger of Allah!" Then the Messenger of Allah (peace and blessings be upon him) said: "By the One in whose Hand is the soul of Muhammad (peace and blessings be upon him)! The world is certainly far more worthless to Allah than this (kid) is in the eyes of its owners."
Imam Muslim (may Allah have mercy on him) narrated a hadith with a similar meaning through Sayyiduna Jabir bin Abdullah (may Allah be pleased with them both).