The Prophet ﷺ forbade sitting partly in the shade and partly in the sun.
أن النبي ﷺ نهى أن يقعد بين الظل والشمس.
Ibn Majah (3722) narrated it from Abu Bakr bin Abu Shayba, who said, Zayd bin Hubab related to us, from Abu Muneeb, from Ibn Burayda, from his father, and he related it accordingly.Its chain of transmission is hasan because of Abu Muneeb, Ubaydullah bin Abdullah, whose narrations are hasan.