Conor McGregor, a former lightweight and featherweight champion, is feeling extremely grateful after being struck by a vehicle from behind while riding his bicycle on Friday. 

The UFC star posted a photo on social media, showing his bicycle lying in the middle of the road after he claims a car hit him "full speed" from behind.  

Conor McGregor in Cannes

Conor McGregor is seen during the 75th annual Cannes Film Festival on May 25, 2022, in Cannes, France. (Edward Berthelot/GC Images)

"Got a bang of a car just now from behind," he wrote in the caption of his Instagram post. "A sun trap, the driver couldn’t see me. Full speed straight thru me."

CONOR MCGREGOR STRONGLY DENIES WOMAN'S CLAIM THAT HE ATTACKED HER ON YACHT

"Thank you, God, it wasn’t my time," he continued. "Thank you wrestling and judo also. Having an awareness on the landing saved my life."

In a subsequent video posted to his social media, McGregor can be seen pacing around in shock as he picked up some of his belongings. 

WARNING: EXPLICIT LANGUAGE 

CLICK HERE FOR MORE SPORTS COVERAGE ON FOXNEWS.COM

"I could have been dead there," he can be heard saying in the video as he appears to speak to the driver of the vehicle involved.

Conor McGregor in UFC 264

July 10, 2021; Las Vegas, Nevada: Conor McGregor fights Dustin Poirier during UFC 264 at T-Mobile Arena. (Gary A. Vasquez-USA TODAY Sports)

"Thank you so much, God," he said in another video posted on his Instagram. "It’s not my time. It’s not my time." 

CLICK HERE TO GET THE FOX NEWS APP

The bicycle accident follows news that McGregor is under investigation in Spain after being accused of physical assault in Ibiza, a claim he denies. 

Conor McGregor leaves the court house

Conor McGregor leaving Blanchardstown Court, Dublin, where he is charged with dangerous driving in relation to an incident in west Dublin in March. Picture date: Thursday, June 23, 2022. (Brian Lawless/PA Images via Getty Images)

The case had been closed, but a judge ordered it to be reopened after receiving more details about the alleged incident.

The Associated Press contributed to this report.