It is better to give a different name to the child. We have also heard the arabs name in Prophet's time(now too) that XXX ibnu YYY. I'm also remembering a hadith that at judgement day Allah will call all the people with their names associated with their father's name.
I heard a new thing(for me) that muslims are prohibited to name father's name to the child. Is it so?
If yes, please provide the hadith for that.
If not, please mention the person(prophets/sahabas/popular scholar only) who is/was named exactly his father's name.
I don't have any proof for prohibiting of naming father's name to son. That is why I asked for a source if it is true. If Islam allows the father to name his son exactly his name, I asked for if any scholars/prophets/sahabas done like that or not. ie, XXX ibnu XXX.