From Arabic بغداد (baḡdād), itself from Persian بغداد (baǧdâd), probably from Middle Persian bgdt, meaning "given by god", from Old Persian *Bagadātaʰ. This is the name of the capital city of Iraq.
From Persian بغداد (Baghdad) most likely derived from Middle Persian 𐭡𐭢𐭣𐭲 (bgdt) meaning "given by god", itself from Old Persian 𐏎 (baga) meaning "god" and 𐎭𐎠𐎫 (dātaʰ) meaning "given, created". This is the name of the capital city of Iraq.