Correct ..
Jesus did say it…. but it was them (the Pharisees) who coined the phrase.
According to their
Talmudic beliefs the Pharisees believed in all sorts of Babylonian junk including reincarnation…. and several were into even more vial things …. It had been 400 years without a man of God and these guys who were supposed to be the custodians of truth, were anything but that.
The purpose of the what I believe is a parable (but that is irrelevant) is concluded in
Luk 16:31 And he said unto him, If they hear not Moses and the prophets, neither will they be persuaded, though one rose from the dead.
His intention was not to contradict the entire Old Testament by teaching survival after death. His primary intention was to show that the Pharisees were so evil that even if someone rose from the dead they still wouldn’t listen to him
How prophetic it was, as evidenced by his own resurrection from the dead, many of the Pharisees did not believe.