AVONDALE, Arizona (AP) — Kyle Busch earned the pole at Phoenix International Raceway and Jimmie Johnson escaped serious injury after a scary crash in NASCAR Sprint Cup qualifying Friday.

Johnson was on his second lap in the final round on the mile oval when he had an issue on the left side of his car and rammed into the second-turn wall at full speed. The right front of the No. 48 car took the most damage and Johnson was able to climb out after the car slid onto the grass.

The six-time Cup champion was examined and released from the infield care center.

"Certainly a lot of straight in an area of the track that I didn't need to have straight. We'll have to get to the bottom of it," Johnson said. "Just a really hard impact to the outside wall. Thankful that we have SAFER barriers and soft walls. But very disappointed because we had such a fast race car."

After the red flag to clean up the wreck, Busch won his 18th career pole and his first at Phoenix since 2012.

Carl Edwards qualified second and Daytona 500 champion Denny Hamlin third, giving Toyota the top three spots for the race Sunday.

Kurt Busch was fourth, and Johnson fifth on a rough day for Hendrick Motorsports.

Dale Earnhardt Jr., who won November's rain shortened race to end Kevin Harvick's four-race win streak at Phoenix, failed to advance past the first round and will start 26th.

The first round of qualifying including a bizarre red flag after Kasey Kahne's car began smoking near the dash while he was running second. The Hendrick driver said he tried to turn the car off and it kept running.

Kahne's car was towed to the garage. He earned the 24th spot, but will need a new engine and will start at the rear Sunday.

Harvick, who has dominated at Phoenix, complained of a loose car in practice, qualified 18th at the mile tri-oval.

Ty Dillon, filling in for the injured Tony Stewart, scraped the wall in the first round and will start 28th.