Jami` at-Tirmidhi, Book 12, Hadith 25 (Tirmidhi 1173)

Abu Hurairah narrated that The Messenger of Allah said:

“A woman is not to travel the distance of a day and a night unless she is accompanied by someone who is a Mahram.”