Many threads on here asking the same question. Do some research to gain knowledge.
If you want to buy one, keep aside a budget for battery and abs replacement, among other maintenance.
My uncle bought a 2008 Prius 5 years ago. Needed a battery pack after a year, then engine started consuming huge amounts of oil, suspension started giving out, the abs failed and just recently he had to have 5 different consoles replaced before getting a good used one.
Now, he is saving up for a total engine replacement the huge amounts of oil consumption is getting worse and it knocks under load as well.
This was a 'company maintained' vehicle before he bought it.