Observation of temperature-gradient-induced magnetization