to say something like that
そんなことを言うなんて気でも狂ったのか。
What the hell were you thinking, saying something like that?
そんなことを言うなんて軽率だ。
It was thoughtless of you to say such a thing.
そんなことを言うなんて君はばかだよ。
You’re an idiot for saying something like that.
あなたがそんなことを言うなんて、珍しいわね。
It's unusual for you to say something like that.
病人にそんなことを言うなんて、彼には思いやりがなかった。
It was insensitive of him to say that to a sick person.