Al-Lajlaj (may Allah be pleased with him) related that he was sitting in the market when a woman passed by carrying a child. The people rose up and I rose too, and we went until we reached the Prophet (peace and blessings be upon him), and he (peace and blessings be upon him) was saying: "Who is the father of this child with you?" She remained silent. A young man standing beside her said: I am his father, O Messenger of Allah. So he (peace and blessings be upon him) turned to her and said: "Who is the father of this child with you?" She again remained silent, and that young man said: O Messenger of Allah! She is young in age and still naive; she will not speak to you, and I am his father, O Messenger of Allah. So the Prophet (peace and blessings be upon him) looked at some of his Companions as if asking them about him, and they said: We know nothing of him but good — or they said something like that. The Prophet (peace and blessings be upon him) said to him: "Are you married?" He said: Yes. So the Prophet (peace and blessings be upon him) ordered that he be stoned. We took him out and dug a pit for him until we had set him in it, then we pelted him with stones until he became still. Then we returned to our gatherings. Meanwhile an old man came asking about the one who had been stoned. We got up, seized him by his collar and took him to the Prophet (peace and blessings be upon him), and we said: O Messenger of Allah! This man has come asking about that foul person. The Messenger of Allah (peace and blessings be upon him) said: "Stop! He is purer in the sight of Allah than the fragrance of musk." So we went along with the old man and found out that he was the father of the deceased. We reached him and helped him with the washing, shrouding and burial. The narrator said: I do not remember whether he also mentioned praying the funeral prayer over him or not.
Hadith Referenceالمعجم الكبير للطبراني / باب اللام / 16537