Sayyiduna Abu Umamah (may Allah be pleased with him) said: A man came to the Messenger of Allah (peace and blessings be upon him) when Sayyiduna Ibrahim (his son (peace and blessings be upon him)) passed away and his (peace and blessings be upon him) eyes were shedding tears. He said: O Prophet of Allah! You weep over this child? By the One who sent you with the truth! In the Days of Ignorance I buried twelve children, each of whom was more worthy of grief than him; I used to bury all of them alive in the earth. The Prophet (peace and blessings be upon him) said: "That was only because mercy had departed from you. The heart grieves and the eye sheds tears over Ibrahim, but we do not say what angers the Lord, and we are indeed grieved over Ibrahim."
Hadith Referenceالمعجم الكبير للطبراني / باب الصاد / 7868