Hadithcore
Riyad as-Salihin, 915

Sa'd bin Abu Waqqas (May Allah be pleased with him) reported:

The Messenger of Allah (ﷺ) came to visit me when I had a severe pain. I said: "I am suffering from such trouble as you are observing. I am a wealthy man and the only heir of mine is my daughter." (Then Sa'd narrated the whole incident). <b>[Al-Bukhari and Muslim]</b>.

وعن سعد بن أبي وقاص رضي الله عنه قال‏:‏ جاءني رسول الله صلى الله عليه وسلم يعودني من وجع اشتد بي، فقلت‏:‏ بلغ بي ما ترى، وأنا ذو مال، ولايرثني إلا ابنتي، وذكر الحديث‏"‏ ‏(‏‏(‏متفق عليه‏)‏‏)‏‏.‏

References1 variant
In-Book Reference
Book 6, Hadith 22
Sharh · explanationclick to expand
<b>Guidance from the Hadiths:</b><br> 1) It is permissible for a man to say he is suffering from pain and illness, by way of informing, not complaining.<br> 2) The more pious a person is, the greater the affliction he suffers, so that he will obtain greater rewards.<br> 3) It is recommended to consult knowledgeable people with regard to the writing of wills, which is beneficial for the deceased and his family. This is one of the ways for deepening the bond between the scholars and lay Muslims.