There is a paragraph in the New Testament that shows that even Christ thought that YHWH is only the god of the Jews and his own mission was restricted to the children of Israel.
Mark:7
25: For a certain woman, whose young daughter had an unclean spirit, heard of him (Jesus), and came and fell at his feet:
26: The woman was a Greek, a Syrophenician by nation; and she besought him that he would cast forth the devil out of her daughter.
27: But Jesus said unto her, Let the children first be filled: for it is not meant to take the children's bread, and to cast it unto the dogs.
28: And she answered and said unto him, Yes, Lord: yet the dogs under the table eat of the children's crumbs.
29: And he said unto her, For this saying go thy way; the devil is gone out of thy daughter.
30: And when she was come to her house, she found the devil gone out, and her daughter laid upon the bed."
See also (Matthew 15:26)
There are a lot of verses in the Old Testament that show YHWH was only the God of the Jews and that other nations had their own gods. Obviously these other gods compared to YHWH were the underdogs. Here are some examples:
"He assigned to each nation a god but Jacob’s descendents he chose for himself" (Deut. 32:9)
"The Lord alone led his people without the help of a foreign god: (Deut. 32:12)
"Lord who among the gods is like you"? (Ex 15:11)
"The Lord the God of the Hebrews…" (Ex 7:16)
"Listen to everything that I, the Lord, have said to you. Do not pray to other gods; do not even mention their names" (Ex. 23:13)If there is no other god what is fuss?
"I will live among the people of Israel" (Ex. 29:45) So God is not Omnipresent, he is not to be found in the rest of the word and he plays favoritism.
"…. the god is with us and has defeated the gods who protected them" (Num. 14:9) How can he defeat someone who dose not exist and how that non existent being would be able to protect anybody?
"… Your god let the men become refugees… " (Num. 21:29)
"By doing this, the Lord showed that he was more powerful than the gods of Egypt" (Num. 33:4) How can one be more powerful than something that does not exist?
"There is no god in heaven or on earth who can do the mighty things that you have done" (Deut. 3:24) If there were no other gods the first part of this sentence would have sufficed.
"Has any god ever dared to go and take a people from another nation and make them his own?" (Deut. 4:34) Implying that other gods are weak, or care not for their believers.
"Do not worship other gods, any of the gods of the people around you" (Deut. 6:14)
"The Lord your God is supreme over all gods…" (Deut. 10:17) Here Jehovah is being compared again to other gods, so there must be other gods, or there can be no comparison.
See also (Deut. 11:16, 28; 12:30; 13:6, 12, 28:10)
So it is clear that the early Jews were not monotheists. The reason behind this obsession of worshiping one god and not the others becomes clear from the following verses.
“Never come to worship me without bringing an offering” (Ex. 23:15)
“The Lord said to Moses, ‘When you take a census of the people of Israel, each man is to pay me a price for his life, …Everyone must pay this in an offering to me” . (Ex. 30:11-13)
Hence, the Israelis had to relinquish the worship of other gods and worship just YHWA. And they had to make some material offerings to him so their prayers gain acceptance. Then there were rituals for cleaning the impure objects, marriage, birth etc that required the believers to make offerings to god.
“The first born of an animal already belongs to the Lord,… A calf, a lamb, or a kid belongs to the Lord, but the first born of an unclean animal may be bought back at the standard price. Plus an additional 20%” (Lev. 27:26,27).
One-tenth of all the produce of the land, whether grain or fruit, belongs to the Lord.” (Lev.27:30).
But who is going to benefit from all these offerings? Of course the vicegerent of god on Earth, who else?
“…Lord’s permanent property; it shall belong to the priest” (Lev. 27:21)
The whole religion was invented by the priesthood to milk the gullible and ensure their dominance and hegemony over the foolhardy believers. You can find plenty of verses in the Bible where the author makes sure the priests are well fed and well paid. There was nothing an individual could do without paying the clergy their lion’s share. When a believer had to slaughter an animal for his household consumption. He could not do it anywhere else but in the “tent of the Presence of the Lord”. He had to bring it to the altar and sacrifice it there. And the priest would keep the best part of it. “Then, when the shoulder of the ram is boiled. The priest shall take it and put it, together with one thick loaf of bread and one biscuit from the basket, into the hands of the Nazirite, Next the priest shall present them as a special gift to the Lord: they are a sacred offering for the priest, in addition to the breast and the leg of the ram which by law belongs to the priest. (Num. 6:19,20) also (Num. 7:5)
This is how and why religions were invented. Similar rituals and costumes can be found in today’s primitive societies where the shaman, the witch or the medicine-man have their hold on the simple minded believers.