A North Carolina man on his way to his final chemotherapy treatment won a $200,000 scratch-off prize, according to a statement from the North Carolina Education Lottery.

The man, identified by the lottery as Ronnie Foster, is battling colon cancer.

Foster picked up a scratch-off ticket at a gas station on his way to the hospital, the lottery said. He won $5 and decided to get two more. He won nothing on the first ticket. The second, a "Win It All" ticket, was the one that got him a $200,000 prize.

After taxes, Foster took home $141,501, according to the lottery. He claimed his prize on Friday – according to the lottery, it was the last top prize.

"I saw all those zeroes and I froze," Foster told the lottery. "I didn’t believe it until I gave it to the clerk at the counter to scan. When it showed, 'Go to lottery headquarters,' I started shaking. I couldn’t believe it."

Another lottery winner:A man survived cancer twice, then he won a $4.6 million lottery jackpot

Foster, a retired Department of Transportation worker, told the lottery he plans to use some of the money to pay for his medical bills.

“I have good insurance,” Foster said. “But there is still some cost. This will make it a whole lot easier.”

The rest is for the future, Foster said in the lottery's statement.

"I was already happy because it was my last round of chemo," Foster said. "Winning this made it my lucky day."

The North Carolina Education Lottery raised more than $700 million last year for education, according to the lottery's website.