そんなことを言うなんて

to say something like that

→ そんな
phrase Rare #33,651
to say something like that なんて adds a sense of surprise, disbelief, or disapproval about the action.
JA: そんなことを言うなんて信じられない。
EN: I can’t believe you’d 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.