Hadith.5654 - Jabir narrated from Abu Jafar Imam Muhammad ibn Ali Al-Baqir عليه السلام that:
"Imam Ali ibn Abi Talib عليه السلام used to give inheritance to the blood relatives over the freed slaves."
As for the narration reported by the opponents - that a freed slave of Hamza passed away and the Prophet (peace and blessings be upon him and his family) gave half of the inheritance to the daughter of Hamza and half to the freed slaves - this is a disconnected narration. It is only reported from Abdullah ibn Shaddad from the Prophet عليه السلام, and it is a mursal (incomplete) narration. Perhaps this incident occurred before the revelation of the laws of inheritance and was later abrogated.
Allah سبحانه وتعالى, the Mighty and Majestic, had prescribed shares for allies in His Book, saying: "And those with whom you have made a pledge, give them their due share," (Surah An-Nisa 4:33) but He سبحانه وتعالى abrogated that with His سبحانه وتعالى saying: "Those who are related by blood are more entitled to inherit from each other in the Book of Allah سبحانه وتعالى." (Surah Al-Anfal 8:75)
It has also been reported that Ibrahim Al-Nakha'i used to reject this narration concerning the inheritance of Hamza's freed slave. What is correct in this matter is the Book of Allah سبحانه وتعالى, the Mighty and Majestic, not the narration.