The Prophet ﷺ said, "Whoever narrates a hadith from me believing it to be false is himself one of the liars."
حدثنا يزيد أخبرنا شعبة عن الحكم عن عبد الرحمن بن أبي ليلى
عن النبي ﷺ قال من روى عني حديثا وهو يرى أنه كذب فهو أحد الكاذبين
Its isnad is sahih. It was mentioned previously at 18101.