Maliks Muwatta Book 16, Hadith Number 43.
Yahya related to me from Malik from Yahya ibn Said that al-Qasim ibn Muhammad said, “One of my wives died and Muhammad ibn Kab al Quradhi came to console me about her. He told me of one among the Bani Israil who was a diligent, worshipping, knowing and understanding man who had a wife that he admired and loved, and she died. He grieved over her intensely and lamented her until he withdrew into a house and locked himself in, hidden from everyone, and no-one visited him. A woman heard about him and went to him, saying, ‘I need him to give me an opinion. Nothing will satisfy me except what he says about it.’ Everyone went away, but she stuck to his door and said, ‘I must see him.’ Someone said to him, ‘There is a woman who wishes to ask your opinion about something,’ and she insisted, ‘I will only talk to him about it.’ When everyone had gone away, and she still had not left his door, he said, ‘Let her in.’ So she went in and saw him and said, ‘I have come to ask your opinion about something.’ He said, ‘What is it?’ She said, ‘I borrowed a piece of jewellery from a neighbour of mine, and I have worn it and used it for a long time. Then they sent to me for it. Should I let them have it back?’ He said, ‘Yes, by Allah.’ She said, ‘I have had it for a long time.’ He said, ‘It is more correct for you to return it to them, since they have lent it to you for such a long time.’ She said, ‘Yes. May Allah have mercy on you. Do you then grieve over what Allah has lent you and then taken from you, when He has a greater right to it than you?’ Then he saw the situation he was in, and Allah helped him by her words.”