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 ﷺ."
سمعت عبد الله بن الزبير وهو مستند إلى الكعبة وهو يقول: ورب هذه الكعبة، لقد لعن رسول الله ﷺ فلانا، وما ولد من صلبه. وفي رواية: لقد لعن الله الحكم وما ولد على لسانه نبيه ﷺ.
Reported by Ahmad (16128) and Bazzar in Kashf Astar (1623), both via the route of Abdul-Razzaq, who said, Ibn Uyayna informed us, from Ismail bin Abu Khalid, from Shaybi, who said, then he mentioned it. The wording given is Ahmad's, and the second version is Bazzar's.Haythami said in Majma (5/241), "Ahmad and Bazzar reported it, except that he said, Allah has indeed cursed Hakam and what he begot, on the tongue of His Prophet ﷺ, and the men of Ahmad are the men of the sahih."