Jews believe lying is okay as well. I’m not an apologist for Islam. It’s cancer. However, Jews will absolutely lie if it is in their best interests:
"Jewish thought, on the other hand, not only allows, but demands lying, if doing so will save a life. Such is the case of Rahab that you mention in the book of Joshua.
This isn’t to say that we quite agree with your phraseology, “where it is for the greater good rather than for harming another or for one’s own selfish gain.” Unfortunately, terrible things are done by those who incorrectly convince themselves that they are doing things “for the greater good.” Such a concept would allow almost all of our consciences to persuade most of us to lie rather frequently.
In reality we are obliged to be truthful in the overwhelming majority of our life circumstances. In rare and specially defined situations, ancient Jewish wisdom explains when one may tell a lie; these are severely limited occasions. Interestingly, while one such exception is to save a life, another is in unique situations when it is necessary in order to keep peace between a husband and wife. This doesn’t reflect on a lack of the importance of truth, but rather on the great importance that God places on marriage.
See how in Genesis 18:12 Sarah chuckles at the thought of her and Abraham having a child seeing “as my husband is too old.” However, when God asks Abraham why his wife laughed saying “she’s too old” He kept the peace between husband and wife by telling Abraham that Sarah had considered herself too old even though in actuality she had been casting aspersions on her husband’s virility.
In summation, telling the truth is required in almost all times and places, but on rare occasions there are other virtues that supersede that one.
Rabbi Daniel and Susan Lapin"