Sunan Ibn Majah, Book 33, Hadith 66 (Ibn Majah 3724)

It was narrated from Ibn Buraidah, from his father, that the Prophet(ﷺ) :

"forbade sitting between the shade and sun."