The Code of Hammurabi is a well-preserved Babylonian code of law of ancient Mesopotamia, dating back to about 1754 BC (Middle Chronology). It is one of the oldest deciphered writings of significant length in the world. The sixth Babylonian king, Hammurabi, enacted the code, and partial copies exist on a 2.25 metre (7.5 ft) stone stele and consists of 282 laws, with scaled punishments, adjusting "an eye for an eye, a tooth for a tooth" (lex talionis)[1] as graded depending on social status, of slave versus free man or woman.[2]
Invasion of Russia destroyed it
We can name three big reasons here.
1. The conversion to Islam in the early age was not something sudden and it did not mean that the previous religious convictions of the population were abandoned. The way it worked was that the Islamic practices were integrated into existing religious systems.
2. Second one is the traveling religious men who went and spread the faith. Wondering holly men were peaceful and were not perceived as threats.They were educated and often were healers. This allowed them to intermingle in the other societies and be their connection to the Islamic world.
3.The renewal movements or the reform ones were created in response to this intermingling of Islam with other religious doctrines. They wanted to return to the true faith and keep Islam pure. They wanted to purify it from foreign influences.