It is narrated from Sayyiduna al-Bara' bin Azib (may Allah be pleased with him) that he said: We were with the Prophet (peace and blessings be upon him) when he passed by a dead kid of a goat, and he (peace and blessings be upon him) asked: "Do you think that this (carcass) has become worthless and contemptible to its owners?" We said: "Yes." Then he (peace and blessings be upon him) said: "Indeed, the passing away of this world is even more trivial and insignificant with Allah Almighty than this (dead kid) is worthless to its owners."
Abu Ya'la al-Mawsili recorded it.