From Sahih Bukhari (Hadith 4782):
Narrated `Abdullah bin `Umar:We used not to call Zaid bin Haritha the freed slave of Allah's Messenger (ﷺ) except Zaid bin Muhammad till the Qur'anic Verse was revealed: "Call them (adopted sons) by (the names of) their fathers. That is more than just in the Sight of Allah
Reference: Bukhari 4782