It is transmitted through al-Layth b. Saʿd, from Yazīd b. Ḥabīb, from Sahl b. Muʿādh b. Anas, from his father—who was a Companion—as a marfūʿ (Prophetic) report.
Al-Ḥākim remarked, “Its chain is sound,” and al-Dhahabī agreed. Their verdict is accurate, for every narrator in the isnād is trustworthy, and Sahl b. Muʿādh is acceptable except in the transmissions that pass through Zabān—and this isn’t one of those.
Aḥmad also recorded it (3/439, 440) via Ibn Lahīʿa: “Zabān narrated to us from Sahl,” adding the phrase, “For a mount may sometimes be better than its rider and remember Allah more than he does.”
This addition is weak because of what you already know about Zabān’s reports from Sahl—especially since Ibn Lahīʿa, who is also weak, appears in the chain. So do not be taken in by al-Haythamī’s comment (8/107) appended to this version with the extra words:
“Ahmad and Ṭabarānī related it, and one of Ahmad’s chains consists of the narrators found in the Ṣaḥīḥ, apart from Sahl b. Muʿādh b. Anas. Ibn Ḥibbān declared him reliable, though there is some weakness in him.”
The chain that matches al-Haythamī’s statement is in fact the first isnād, the one that does not contain this addition. Take heed.