You got marxist lenin as your tag
Not incompatible. Look to South-Yemen and Somali DR.
Also check out this Stalin quote:
"...The Soviet Government considers that the Sharia, as common law, is as fully authorized as that of any other of the peoples inhabiting Russia" (
https://www.marxists.org/reference/archive/stalin/works/1920/11/13.htm)
Also he told this to Enver Hoxha, who was at the time wishing to dismantle religion :
βYou [Albanians] are a separate people, just like the Persians and the Arabs, who have the same religion as the Turks. Your ancestors existed before the Romans and the Turks. Religion has nothing to do with nationality and statehoodβ¦ Nevertheless, the question of religious beliefs must be kept well in mind, must be handled with great care, because the religious feelings of the people must not be offended. These feelings have been cultivated in the people for many centuries, and great patience is called for on this question, because the stand towards it is important for the compactness and unity of the people.β (
https://en.wikiquote.org/wiki/Joseph_Stalin#Contemporary_witnesses)