Sam releases Lucifer by mistake thinking that he was killing a powerful demon in season 4. Gets blamed for it even in season 9.
Cas releases Lucifer knowing that it’s a bad idea, but thinking of it as a last resort. Is told that he did the right thing.
??????