al-Bayhaqī, in al-Sunan (1/379), transmitted it through Sufyān ibn ʿUyaynah, from Misʿar, from Ibrāhīm al-Saksakī, from Ibn Abī Awfā, who said: The Messenger of Allah, peace and blessings be upon him, said: “...” — thus citing it. Al-Bazzār said:
“We know of no one other than Sufyān who narrated it from Misʿar. The correct version is that it is attributed to Abū al-Dardāʾ as a Companion report.”
Ibn Shāhīn said:
“Sufyān alone transmitted it from Misʿar; no one else narrated it from him. It is a singular, authentic, good hadith!”
Al-Ḥākim said:
“This is an authentic chain of transmission. Muslim and al-Bukhārī both relied upon Ibrāhīm al-Saksakī; once a narrator’s reliability has been established in this manner, criticism from one whose own chain is defective cannot harm him.”
He then cited it through ʿAbd Allah, from Misʿar, from Ibrāhīm al-Saksakī, who said: “My companions related to me from Abū al-Dardāʾ that he said ...” — and he cited a similar report attributed to the Companion. He said:
“This does not invalidate the first report or disclose a defect in it, for Ibn ʿUyaynah was a trustworthy master of hadith, as was ʿAbd Allah ibn al-Mubārak.”
I say: The hadith master Ibn Ḥajar made no comment on this hadith in al-Talkhīṣ al-Ḥabīr (1/208).
I have some observations here which I must mention:
First: Al-Bazzār’s statement: “The correct version is the Companion-attributed one.”
I say: There is no basis for deeming it correct in this way, for, as you have seen, both the Prophet-attributed and the Companion-attributed versions hinge upon Ibrāhīm al-Saksakī. If he is an authoritative transmitter, then the matter is as al-Ḥākim said: the Companion-attributed report does not invalidate the Prophet-attributed one, because the chain of transmission to him is authentic in each case. Reflect on this!