This is true.
But Mohammed plagiarised it shamelessly from the Talmud after he saw how well the double standard was working for his Jewish neighbours.
Put the Avesta, the Bible, the Talmud and the Qur'an side by side, and you'll find all four are 70% the same, and the last two have more in common with each other than the first two.