そんな事をするとはうかつだった。It was careless of me to do something like that.Break it down Tatoeba Pitch this sentence on OJAD