Yahya bin Hamzah mentioned this hadith with the same meaning. Then Muhammad (bin Isma'il al-Bukhari) (may Allah have mercy on him) said: Some said that Abdullah bin Mawhab heard from Sayyiduna Tamim al-Dari (may Allah be pleased with him), but it is not sound, because of the saying of the Prophet (peace and blessings be upon him): "Wala' belongs only to the one who frees."
The Shaykh (may Allah have mercy on him) said: Yazid bin Khalid bin Mawhab al-Ramli also narrated it from Yahya bin Hamzah.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الولاء / 21459