PORTLAND, Ore. (KOIN) — A Oregon lottery ticket worth $1 million nearly blew out of the window of a Beaverton man’s car when his wife pulled down the sun visor.

Luckily for Jose Martinez, she scrambled to pick them up quickly, including that winning Mega Millions ticket.

Lottery officials said Martinez bought the ticket May 14 at the S&S Market in Hillsboro, the day of that drawing. His ticket matched 5 of the 6 numbers — 11-59-66-67-68 and Mega Ball 18 — but he didn’t know it for a while.

“I went on a business trip and left the tickets between the sun visor and the roof of my car,” Martinez said in a statement.

When his wife pulled down the sun visor, the tickets he bought and stashed there fell down and almost blew away. She suggested he check the tickets.

“I used the Lottery’s app and the first ticket I scanned was the $1 million ticket,” he said. “I really like the app now.”

Bobby Singh, who owns the S&S Market, said he’s never before sold that kind of a winning ticket before. The market will receive a $10,000 bonus from the lottery.

Martinez said the couple was going to use the winnings to pay off their home.