Not to other muslims. Only to outsiders, for self-preservation.
This is very different from Christianity, which teaches unequivocally that lying is a sin.
Was Peter punished for denying Christ?
Yeshua paid Peter’s penalty.
A lie reflects the character of the liar—it has no necessary relationship with the recipient.
Sin is forgiven through repentance.