Yes, Thailand has a retirement visa referred to as the Non-Immigrant O-A Long-stay visa. It’s renewable and allows retirees to stay in Thailand indefinitely. To get the visa, you have to meet the financial and age requirements stipulated:
Deposit THB 800,000 in a local bank account
Medical certificate
Have a pension or income of a minimum THB 65,000 per month. You have to prove this with an affidavit that is issued by your embassy or consulate in Thailand
Have an income and deposited amount that totals of at least THB 800,000 annually
A clean criminal record, both in Thailand and your home country