5089 in words is written as :

Five Thousand Eighty Nine