https://www.instagram.com/p/BOd3WUAAIFR/

Rapper 50 Cent visited his bullet-riddled buddy, Troy Ave, in the hospital and posted this bedside photo on Instagram.

“Dope boy Troy all good,” 50 wrote on Instagram. “Merry Christmas.”

The well-wishes came hours after a Christmas Day shooting left Troy Ave with a bullet wound to the arm and a graze wound to the head.

Troy Ave and 50 Cent recorded a song together, “Bang Bang,” which was released in 2015.

The Brooklyn-born Troy Ave — whose real name is Roland Collins — was shot Sunday while sitting in a red Maserati with his girlfriend at East 91st Street and Linden Boulevard in Canarsie at about 4:20 p.m.

The gunman walked up to Troy Ave’s convertible and fired through the driver’s-side window, according to police.

The rapper took himself to Brookdale Hospital, where he was recovering on Monday.

“Shot in the head, man,” the rapper told The Post as he was being wheeled into the hospital.

Troy Ave has been out on bail since his arrest in connection with a shooting backstage at an Irving Plaza concert for T.I. in May. A bodyguard was fatally wounded in the shooting and two other people were left injured.

Troy Ave suffered a gunshot wound to the leg in the incident, but it may have been self-inflicted.