Hayden scored 123 runs in Australia 's second innings before he was caught out .