Shaybi reported,

I heard Abdullah bin Zubayr, while leaning against the Kaabah, saying, "By the Lord of this Kaabah, the Messenger of Allah ﷺ cursed so-and-so and whoever descends from his loins."In another narration, "Allah cursed Hakam and his descendants through the tongue of His Prophet ﷺ."

Azami 10175

Sahih

عن الشعبي قال

سمعت عبد الله بن الزبير وهو مستند إلى الكعبة وهو يقول: ورب هذه الكعبة، لقد لعن رسول الله ﷺ فلانا، وما ولد من صلبه. وفي رواية: لقد لعن الله الحكم وما ولد على لسانه نبيه ﷺ.

الأعظمي 10175صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Virtues of the Companions and reports about them
Chapter
Virtues of individual Companions and their reports
Section
Accounts of Hakam bin Abu Aas
Numbering
Jami al-Kamil 10175 (2nd edition)
Azami 10175