Jami` at-Tirmidhi, Book 27, Hadith 116 (Tirmidhi 2078)

Abdullah bin Sarjis Al-Muzam narrated that the Messenger of Allah said:

"Taking the good route is a part of the twenty-four parts of Prophethood."