Hazrat Buraidah narrates that the Holy Prophet (peace and blessings be upon him) forbade sitting between shade and sunlight.