To express that something was unintentional, use the Spanish phrase fue sin querer. A common English translation of fue sin querer is I didn't mean to.
Dormí hasta muy tarde. ¡Fue sin querer! | I slept in very late. I didn't mean to! |
Se arrepiente de lo que hizo, fue sin querer. | He's sorry about what he's done, he didn't mean to. |
Literally, fue sin querer means it was without to want (wanting).