Sahih Muslim 2326
Anas reported that a woman had a partial derangement in her mind, so she said. Allah's Messenger, I want something from you. He said:
Mother of so and so, see on which side of the road you would like (to stand and talk) so that I may do the needful for you. He stood aside with her on the roadside until she got what she needed.
وَحَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا يَزِيدُ بْنُ هَارُونَ، عَنْ حَمَّادِ بْنِ سَلَمَةَ، عَنْ 
 ثَابِتٍ، عَنْ أَنَسٍ، أَنَّ امْرَأَةً، كَانَ فِي عَقْلِهَا شَىْءٌ فَقَالَتْ يَا رَسُولَ اللَّهِ إِنَّ لِي إِلَيْكَ حَاجَةً
 فَقَالَ ‏
"‏ يَا أُمَّ فُلاَنٍ انْظُرِي أَىَّ السِّكَكِ شِئْتِ حَتَّى أَقْضِيَ لَكِ حَاجَتَكِ ‏"‏ ‏.‏ فَخَلاَ مَعَهَا فِي
 بَعْضِ الطُّرُقِ حَتَّى فَرَغَتْ مِنْ حَاجَتِهَا ‏.‏