Reported from the Prophet ﷺ with the same wording.
حدثنا عفان حدثنا حماد عن حميد عن الحسن
عن النبي ﷺ مثله
No references are available.
Its chain of transmission is sahih.