Sayyiduna Abdullah bin Umar (may Allah be pleased with them both) says that the Messenger of Allah (peace and blessings be upon him) delivered a sermon and said: "The testimony of a treacherous man or woman, of one who harbours rancour against his brother, and of one who has been made to stand for a prescribed punishment (hadd), is not permissible."
Ali (al-Daraqutni) said: Yahya bin Sa'id is al-Farisi, who is matruk (abandoned), and Abd al-A'la is da'if (weak). The Shaykh (al-Bayhaqi) said: Nothing reliable is authentic from the Prophet (peace and blessings be upon him) on this; it is narrated from Umar bin al-Khattab (may Allah be pleased with him).
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الشهادات / 20571