Sahih Muslim
2142.01

Zainab, daughter of Umm Salama, reported:My name first was Barra. Allah's Messenger (ﷺ) gave me the name of Zainab. Then there entered (into the house of Allah's Prophet as a wife) Zainab, daughter of Jahsh, and her name was also Barra, and he gave her the name of Zainab

2142.02

Muhammad b. 'Amr b. 'Ata' reported:I had given the name Barra to my daughter. Zainab, daughter of Abu Salama, told me that Allah's' Messenger (ﷺ) had forbidden me to give this name. (She said): I was also called Barra, but Allah's Messenger (ﷺ) said: Don't hold yourself to be pious. It is God alone who knows the people of piety among you. They (the Companions) said: Then, what name should we give to her? He said: Name her as Zainab