Sayyiduna Abu Hurayrah (may Allah be pleased with him) said that the Prophet (peace and blessings be upon him) said: "I do not know whether Tubba' was accursed or not, nor whether Dhu al-Qarnayn was a prophet or not; nor do I know whether the hudud (prescribed punishments) are an expiation for a person or not."
Abd al-Razzaq narrated it thus from Ma'mar, while Hisham al-San'ani narrated it from Ma'mar, from Ibn Abi Dhi'b, from al-Zuhri, from the Prophet (peace and blessings be upon him) in mursal form. Al-Bukhari said: That is more correct, and this is not established from the Prophet (peace and blessings be upon him), because it is established from the Prophet (peace and blessings be upon him) that the hudud are an expiation.
The Shaykh (may Allah have mercy on him) said: We have recorded it through another route from Ibn Abi Dhi'b in connected (mawsul) form.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الأشربة والحد فيها / 17595