Iwouldtranslatethesentence"余嘉其能行古道作师说以贻之"asfollows:"HehighlypraisedtheabilityofYuJiatofollowtheancientpathandconveyedhisteachingsinordertopassthemon."

I would translate the sentence "余嘉其能行古道作师说以贻之" as follows:
"He highly praised the ability of Yu Jia to follow the ancient path and conveyed his teachings in order to pass them on."
