Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ibnmajah:3722Abū Bakr b. Abū Shaybah > Zayd b. al-Ḥubāb > Abū al-Munīb > Ibn Buraydah from his father

"forbade sitting between the shade and sun."  

ابن ماجة:٣٧٢٢حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ حَدَّثَنَا زَيْدُ بْنُ الْحُبَابِ عَنْ أَبِي الْمُنِيبِ عَنِ ابْنِ بُرَيْدَةَ عَنْ أَبِيهِ

أَنَّ النَّبِيَّ ﷺ نَهَى أَنْ يُقْعَدَ بَيْنَ الظِّلِّ وَالشَّمْسِ