MARTINSVILLE, Va. -- Denny Hamlin promised he would be a factor in Sunday's NASCAR race at Martinsville Speedway, and he went out and proved it by leading a parade of drivers who smashed the track qualifying record.

Hamlin turned a lap at 99.595 mph around the 0.526-mile oval, the oldest and shortest in the Sprint Cup Series. It's his 17th career pole, third at Martinsville and career-best fifth this season.

Hamlin later also won the pole for Saturday's truck race, where he'll seek his third straight victory at the track.

Johnson, a five-time champion for Hendrick Motorsports, will start the race with a four-point lead over Matt Kenseth in the championship, and surrounded by Kenseth and his teammates -- Hamlin and Kyle Busch.

Johnson and Busch actually tied in qualifying at 99.344 mph, but Johnson was awarded the second spot based on the owner points tiebreaker, moving Busch to the third spot with Kenseth alongside.

Johnson, who has won eight times at Martinsville, including the last two, said his team struggled for much of the day in practice, but "we found some direction there at the end and made some adjustments."

The top 10 in the starting grid features half of the top 10 in points with just four events to go. Busch and Kevin Harvick (starting 10th) are third, 26 back, and Jeff Gordon (9th) is fifth, 34 back.

Hamlin, who is in danger of seeing his streak of seasons with a victory end at seven if he can't claim one of the final races, said he will race hard for a victory, and to be a good teammate.

Copyright 2013 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.

More From KSOO-AM / ESPN Sioux Falls