"When I saw the opening to get inside, I was taking it," Gordon said.
It couldn't have come at a better time. The skies opened and cars were ordered off the track. The race was called moments later with 98 of the 160 scheduled laps completed.
Gordon, who turned 41 on Saturday, had been hit by a string of bad breaks this season and knew he needed wins over the final six races before the Chase cutoff to have any shot at running for a fifth championship during the 10-race playoffs. Gordon moved into the second wild-card spot that would guarantee him a berth in the field.
Gordon, who also won a rain-shortened race at Pocono in 2007, passed Bill Eilliott for most career wins at Pocono with six.
Kasey Kahne was second, followed by Martin Truex Jr., Brad Keselowski and Tony Stewart.
Kahne refused to rule out another Gordon championship run if he stays in the Chase field.
"Absolutely. It's Jeff Gordon. Look what he's done," Kahne said.
With the storms coming spotters told their drivers the heavy rain was coming Johnson was in prime position to follow last week's win in Indy with another trip to Victory Lane. Something, though, went wrong with Johnson's car and he made contact with Kenseth. Johnson dropped back but suffered no real damage. Kenseth touched the wall and slid down the track. Hamlin had nowhere to go except right into the side of the No. 17.
Hamlin was taken to the infield care center and complained of discomfort around his abdomen but was released.
Gordon, who was sixth in the restart necessitated by Kurt Busch's wreck, took off and took the lead.
"I know that you don't want to win them quite like this, but we've earned it because of all the things that we've done this year," Gordon said.
Johnson blamed a right rear flat tire for sparking the accidents.
Then the downpour came. The scheduled 400-mile race had already been postponed about two hours because of rain.
"For all the things that have gone wrong for us this year, I still can't believe what just happened," Gordon said. "But, I think this is the one that makes up for all the ones that have gotten away. I'm just so proud of this team."
Sprint Cup standings
1. D. Earnhardt Jr. 744
2. M. Kenseth 739 -5
3. G. Biffle 738 -6
4. J. Johnson 736 -8
5. M. Truex Jr. 694 -50
6. T. Stewart 691 -53
7. B. Keselowski 690 -54
8. D. Hamlin 683 -61
9. K. Harvick 681 -63
10. C. Bowyer 679 -65
11. K. Kahne 622 -122
12. C. Edwards 619 -125