I nearly did it. In my case a change of sequence in planning stage and a failure for my brain to comply. Programmed the NAV. Flew to what in my mind was the correct deck. Made a call for deck landing and the "correct" deck answered. Frantic check of paperwork and OOOPS nearly did it.
We should read the label on the deck but sometimes something takes our concentration away form that requirement onto something more pressing and if all the stars have aligned, it happens.
For many years the most pragmatic solution has been the RED Lights ON indicating deck unavailable and GREEN Lights ON for available. That may solve the problem.....but who's going to pay for it???
Hope the crew are OK and yes, if they don't suffer "Sharia" Law, the Commander wont make that mistake again.