Banking originated in Ancient Mesopotamia where the royal palaces and temples provided secure places for the safe-keeping of grain and other commodities. Receipts came to be used for transfers not only to the original depositors but also to third parties. Eventually private houses in Mesopotamia also got involved in these banking operations and laws regulating them were included in the code of Hammurabi.
Mesopotamia (from the Greek meaning ‘between two rivers’) is an area geographically located between the Tigris and Euphrates rivers, largely corresponding to modern-day Iraq and western part of Iran.
In Egypt too the centralization of harvests in state warehouses also led to the development of a system of banking. Written orders for the withdrawal of separate lots of grain by owners whose crops had been deposited there for safety and convenience, or which had been compulsorily deposited to the credit of the king, soon became used as a more general method of payment of debts to other persons including tax gatherers, priests and traders. Even after the introduction of coinage these Egyptian grain banks served to reduce the need for precious metals which tended to be reserved for foreign purchases, particularly in connection with military activities.
By the way, money did not have a single origin but developed independently in many different parts of the world.