However, on the point of last names, I feel the urge to point out that I personally know several, very devout and traditional, catholic couples who kept their last names in wedlock.
On a slightly different note: Hammurabi's name means literally "his uncle is a healer" (related to Arabic عم (ʕamm) meaning paternal uncle, and the latter part to rabbi).
I my mind there's a mildly funny* movie where Hammurabi, the person who created/codified the foundations of our law, someone remembered for 1000s of years... was an insecure overachiever. "You conquered the Elamites? And Larsa? Oh, that's cute my boy. Now get a real job like your uncle who is a doctor!"
* (for me, my bar is low)
Cultures share history but the whole point is that they’re not continuous. You specified the pre-Christian era, and there have been many significant changes since then which any common definition of the term would consider discrete boundaries.
> Also, I've never ever heard anyone say that wives need to take names of their husbands, because the Bible says so. Is that an American thing?
It’s not specific to the US but there are certainly American churches which have strong opinions on this point. One thing to remember is that these things aren’t just the literal text of the scriptures in whatever version of the Bible they use but also the collection of interpretation and custom around it, and people have a history of interpreting scriptural text differently based on a position which they want to support.