Two Malaysian women convicted for attempting to have lesbian sex will be fined and caned, a prosecutor said on Tuesday, in a rare case against gay people in the Muslim-majority country.

Islamic enforcement officers in the conservative northeastern state of Terengganu found the two Muslim women attempting to engage in sexual acts in a car during a patrol in April, according to prosecutor Muhamad Khasmizan Abdullah.

The women were charged under the Islamic sharia law known as musahaqah — which bans lesbian sex — and sentenced to six strokes of the cane and a fine of 3,300 Malaysian ringgit ($806) each this week after pleading guilty, the prosecutor said.