Something similar was narrated from the Prophet ﷺ.
حدثنا قتيبة حدثنا قزعة بن سويد الباهلي عن محمد بن المنكدر
عن النبي ﷺ نحوه
No references are available.
[Its chain of transmission is sahih.] See no. 924.