The parable of the prodigal son is found in Luke 15:11-32. The bottom line is that we are not told how long he was away. However, from verse 29, we may infer that he was gone for "many years."
I hope you have found this helpful.
God bless you,