What is known as "the bible" is in fact a compilation of various ancient literary genres written by different authors in different locations over and extended period of time. All of these authors were of middle eastern origin and shared cultural-religious beliefs and rituals (that varied itself over time as nothing stays the same).
The variation is not that huge though. If you look at middle eastern cultural-religious beliefs of the Islamist faction Boko Haram and what they are doing today (see for instance the Chibok schoolgirl kidnapping in Nigeria in 2014 for instance, where virgin schoolgirls between 16-18 were kidnapped and forced into so-called 'marriage' with the Boko Haram soldiers) then you will realize the continuoues congruency across all middle-eastern born religions, evidenced by the compilation of literary works. As a comparative example, look at this passage in Numbers 31:13-18, 31-35 and do the comparison to Islamist Boko Haram and you will discover how cultural-religious values are shared and transferred all over the show from then till today:
13 Moses, Eleazar the priest and all the leaders of the community went to meet them outside the camp. 14 Moses was angry with the officers of the army—the commanders of thousands and commanders of hundreds—who returned from the battle.
15 “Have you allowed all the women to live?” he asked them. 16 “They were the ones who followed Balaam’s advice and enticed the Israelites to be unfaithful to the Lord in the Peor incident, so that a plague struck the Lord’s people. 17 Now kill all the boys. And kill every woman who has slept with a man, 18 but save for yourselves every girl who has never slept with a man.
31 So Moses and Eleazar the priest did as the Lord commanded Moses.
32 The plunder remaining from the spoils that the soldiers took was 675,000 sheep, 33 72,000 cattle, 34 61,000 donkeys 35 and 32,000 women who had never slept with a man