al-Bayhaqī reported via Yaʿlá b. Shaddād: from his father that he said, “During the time of the Prophet ﷺ, we used to consider showing-off as minor polytheism.”
Graded ṣaḥīḥ by al-Albānī in Ṣaḥīḥ al-Targhīb (35).
al-Albānī states in the footnote, “And al-Ḥākim also narrated it (4: 329) and said ‘Ṣaḥīḥ’, and al-Dhahabī agreed with him, and it is as they both said. If the author had referenced it to him, it would have been more appropriate.”
I (Salal) say: al-Ḥākim (d. 405) was the teacher of al-Bayhaqī (d. 458), thus the former should have been referenced over the latter.
See: al-Ḥākim (8151) ed. Dār al-Taʾṣīl..