Messenger of Allah ﷺ came to visit me while I was sick and unconscious. He performed ablution and sprinkled the remaining water on me and I became conscious and said, "O Messenger of Allah ﷺ! To whom will my inheritance go as I have neither ascendants nor descendants?" Then the Divine verses regarding Fara'id (inheritance) were revealed. (Using translation from Bukhārī 194)
سَمِعْتُ جَابِرًا يَقُولُ كَانَ رَسُولُ اللهِ ﷺ يَعُودُونِي وَأَنَا مَرِيضٌ لَا أَعْقِلُ فَتَوَضَّأَ وَصَبَّ عَلَيَّ مِنْ وَضُوئِهِ فَعَقَلْتُ فَقُلْتُ يَا رَسُولَ اللهِ لِمَنِ الْمِيرَاثُ إِنَّمَا يَرِثُنِي كَلَالَةً فَنَزَلَتْ آيَةُ الْفَرَائِضِ