Dak Prescott's dog has gone from the dog house to the penthouse ... starring in a new TV commercial -- almost four years after he was nearly put down by authorities for attacking a neighbor.
The Dallas Cowboy's pup, Icon, was busted way back in Feb. 2019 -- after cops said he broke free from the quarterback's Frisco, Texas home, chewed through a nearby woman's fence, and then bit off part of her finger.
The pit bull was caught and quarantined ... and, days later, officials set up a hearing for the animal to determine if it should be classified as a "dangerous dog."
If it was found to be dangerous, euthanasia was on the table. But, fortunately for Prescott, authorities ultimately released the dog back to the NFL player under the condition he was removed from Frisco.
The dog has apparently stayed out of trouble since ... 'cause AT&T just tapped him to be in a new ad for the co. this week.
In the spot, Icon can be seen adorably roamin' around a house -- missing his owner while the quarterback was shining for the Cowboys on gameday.
In one scene, Icon can be seen lovingly licking Prescott's face.
Dak shared the advert on his social media page on Thursday, calling the dog his "best friend."
As for the victim of the 2019 Icon bite, we reached out for her thoughts on it all ... but she declined to comment.