Foxx has been hospitalized for the past three weeks for an undisclosed medical complication.

Nick Cannonis set to face the music as guest host for Fox’sBeat ShazamamidJamie Foxx’s hospitalization.

Season 6 returns May 23.

Jamie Foxx on ‘Beat Shazam’

Jamie Foxx on ‘Beat Shazam’.Lorraine O’Sullivan/FOX

Foxx has been hospitalized for the past three weeks for a undisclosed medical complication.

Previous reports have indicated that the health scare did not occur on set.

Reps for Foxx didn’t immediately respond to EW’s request for comment.

Foxx has hosted and executive producedBeat Shazamsince the game show’s debut in 2017.

It pits teams of two against each other and the clock as they race to identify hit songs.

Cannon is no stranger to hosting duties, having emceed competition seriesAmerica’s Got TalentandThe Masked Singer.

Foxx’s recent credits includeSoul, Spider-Man: No Way Home,andDay Shift.

Upcoming projects includeThe Burial, Signal Hill, the Mike Tyson miniseriesTyson, They Cloned Tyrone, andStrays.