I wouldn't call it malicous compliance, but yes, I have a story
Came back from vacation to find out I had been replaced and demoted. I found out when I tried to log on to the main systems to resolve a problem I was told had not been resolved for over a week. I was locked out. I knew there was something suspect right at the moment.
Confronted the boss, who told me I was demoted and the new admin now ran the show. I asked him when the current system problem was going to be fixed and where was the new guy. I also knew at that moment that new admin had caused the problem.
Boss had no answer except the new guy was off that day and the problem was not getting fixed. I could have fixed it that day, but now it was not getting fixed until the new admin returned.
I spent the day thinking it over and decided to put in my two weeks notice, but I waited the next day to tell the boss.
Next day arrives and put in my notice, but to cover my ass, I promised I would show the new admin around the system. Whenever he decided to show, that is. Which he did not, until the second week of my return. The last week of my notice.
And show him around I did, complete with a checklist that I made him sign for each step. He never once asked me how to solve the ongoing problem. And I was not going to volunteer it. He created it, he can fix it. I was, by definition of the company, no longer in charge nor had access, nor even part of that team anymore.
The final day, the problem was still not fixed, the new admin never asked me how to fix it, production had come to a halt and the VIP client was knocking hard on our door. I left at quitting time knowing they were screwed and that I had thoroughly covered my ass.
Both they and their client were gone the next year.