A Florida man who accidentally threw out his wife's $10,000 custom-made wedding ring found it after digging through tons of garbage at a dump, the Sun Sentinel reports.

The newspaper says Brian McGuinn's pregnant wife, Anna, had handed him the ring to put in her jewelry box while she showered, but he absent-mindedly tossed it out with an old razor.

The next day, a horrified McGuinn called the waste management company that handles garbage for Margate, Fla., to help locate it.

WATCH: NBC Miami's video report

The company gave him a protective vest, goggles and a suit and leveled out a 10-foot pile of garbage to search.

Unbelievably, McGuinn, 34, spotted the ring 30 minutes later after digging through "absolutely disgusting" garbage. It was surrounded by black sludge and wedged between two brown bags.

"I was ecstatic," he tells the Sun-Sentinel. "It was like winning the lottery. It was probably one of the best moments ever."