Rasulullah (sallallahu ‘alayhi wa sallam) advised people to avoid sitting in direct sunlight because it spoils the clothing, causes a person to smell with perspiration and also causes suppressed illness to surface.[Mustadrak: 8264]
Imam Hakim (rahimahullah) has recorded this narration on the authority of Sayyiduna ‘Abdullah ibn ‘Abbas (radiyallahu ‘anhuma).
(Mustadrak Hakim, vol. 4 pg. 411)
However, ‘Allamah Dhahabi (rahimahullah) has declared the narration a fabrication.
Imam Abu Bakr ibn Abi Shaybah (rahimahullah) has recorded the narration as the statement of the Arab doctor; Al Harith ibn Kaladah.
(Musannaf Ibn Abi Shaybah: 24185)
The narration should therefore be quoted as the statement of Harith ibn Kaladah and not as a Hadith of Rasulullah (sallallahu ‘alayhi wa sallam).
Also see here
And Allah Ta’ala Knows best.
Answered by: Moulana Suhail Motala
Approved by: Moulana Muhammad Abasoomar