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.
Related hadith on this topic
Explanation & Benefits
Shaykh Maulana Abdul Aziz Alvi
Hadith Commentary: Benefits and Issues: People are not willing to listen to the words of a person of weak intellect, but the Prophet (sallallahu alayhi wa sallam) separated himself on the road, and in accordance with the wish of a woman of weak intellect, listened to her words and remained standing with her until her matter was fulfilled.
Source: Tuhfat al-Muslim: Commentary on Sahih Muslim, Page: 6044