Abdullah bin Umar reported,

We used to call Zayd bin Haritha, the freed slave of the Messenger of Allah ﷺ, by no other name than Zayd bin Muhammad, until the Quran was revealed, "Call them by the names of their fathers, that is more just in the sight of Allah" [Ahzab 33:5].

Bukhari 4782

Sahih

حدثنا معلى بن أسد حدثنا عبد العزيز بن المختار حدثنا موسى بن عقبة قال حدثني سالم

عن عبد الله بن عمر رضي الله عنهما

أن زيد بن حارثة مولى رسول الله ﷺ ما كنا ندعوه إلا زيد بن محمد حتى نزل القرآن {ادعوهم لآبائهم هو أقسط عند الله}

البخاري 4782صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Tafsir
Chapter
Call them by their fathers, it is more just before Allah
Numbering
Darussalam 4782
Bukhari 4782