it occurred to me
Nunca se me ocurrió que él podía estar enfermo.
It never occurred to me that he could be sick.
An idea came to me.
Yesterday I had an idea.
Al ser cogido por sorpresa, no se me ocurrió nada que decir.
Caught off guard, I couldn’t think of anything to say.
Desde que se me ocurrió que te podía perder.
Ever since it occurred to me that I could lose you.
— Una cuestión de tiempo (2013)
No se me ocurrió una explicación tan breve.
I couldn't think of such a brief explanation.
Se me ocurrió que él podía estar en la biblioteca.
It occurred to me that he might be in the library.
That's the one I came up with.