Abu Hurayra reported that he heard the Messenger of Allah, may Allah bless him and grant him peace, say, "No human child has ever spoken in the cradle except for 'Isa ibn Maryam, may Allah bless him and grant him peace, and the companion of Jurayj." Abu Hurayra asked, "Prophet of Allah, who was the companion of Jurayj?" The Prophet replied, "Jurayj was a monk who lived in a hermitage. There was a cowherd who used to come to the foot of his hermitage and a woman from the village used to come to the cowherd.
"One day his mother came while he was praying and called out, 'Jurayj!' He asked himself, 'My mother or my prayer?' He concluded that he should prefer the prayer. She shouted to him a second time and he again asked himself, 'My mother or my prayer?' He thought that he should prefer the prayer. She shouted a third time and yet again he asked himself, 'My mother or my prayer?' He again concluded that he should prefer the prayer. When he did not answer her, she said, 'Jurayj, may Allah not let you die until you have looked at the faces of the beautiful women.' Then she left.
"Then the village woman was brought before the king after she had given birth to a child. He asked, 'Whose is it?' 'Jurayj's,' she replied. He asked, 'The man in the hermitage?' 'Yes,' she answered. He ordered, 'Destroy his hermitage and bring him to me.' They hacked at his hermitage with axes until it collapsed. They bound his hand to his neck with a rope and took him along to the king. When he passed by the beautiful women, he saw them and smiled. They were looking at him along with the people.
"The king asked, 'Do you know what this woman claims?' 'What does she claim?' he asked. He replied, 'She claims that you are the father of her child.' He asked her, 'Where is the child?' They replied, 'It is in her room.' He went to the child and said, 'Who is your father?' 'The cowherd,' he replied. The king said, 'Shall we build your hermitage out of gold?' 'No,' he replied. He asked, 'Of silver?' 'No,' he replied. The king asked, 'What shall we build it with?' He said, 'Put it back the way you found it.' Then the king asked, 'What made you smile.' 'Something I recognised,' he replied, 'The supplication of my mother overtook me.' Then he told him about it."
Taken from Parents: Al-Adab al-Mufrad Al-Bukhari