Hamlin put a weekend of illness behind him, turning a lap of 160.121 mph Friday at Dover International Speedway to win his first pole of the season.
He suffered from a migraine headache and dehydration in the Coca-Cola 600 on Sunday night in Charlotte, the result of both a busy weekend packed with golf and tennis, and a leaky exhaust in the No. 11 car that made him lightheaded.
"I felt like I kept up with my fluids pretty well last week, but obviously it wasn't enough," Hamlin said. "I've got to go above and beyond. The conditions and the car didn't make things very easy for me."
Hamlin made qualifying look easy on the mile oval.
"Our car has shown speed all day long, which is something we haven't had lately, so we're kind of building and getting a little bit better and starting to figure out our setups," Hamlin said.
Truex, who has one of his two career Sprint Cup wins at Dover, joined Hamlin on the front row. Truex is off to the best start of his career and has been inching closer toward a checkered flag.
He has 11 top-10s in 12 races and three top-fives. He led 95 laps at Kansas before fading to ninth and led 131 last week at Charlotte before he settled for fifth.
Truex is trying to snap a winless skid that stretches 68 races to the event on June 23, 2013, at the Sonoma road course. He thought he had enough for the pole.
"We thought we were in good shape, and then right there, I went to go for it and for some reason the car just got really tight laying it down in the corners," Truex said.
Kyle Larson was third, fellow
Hamlin led the way for Joe Gibbs Racing, which placed all four cars in the first five rows.
Edwards was relieved he broke through for JGR and could deliver a win to help lock him in the Chase for the Sprint Cup championship.