The actor, who used to rap under the name "Prince Ali," was a friend of the late rapper and firefighter.
The Emmy-nominated show has won two NAACP Image Awards and a 2024 GLAAD Media Award to date.
The singer will reprise his role as Danny Reagan.
Tate McRae is also locked in to perform a week prior.
"I can’t wait for audiences to experience the magic we’ve created," Timbaland tells Billboard Family.
“I’ve written with Miguel,” John Legend told the Atlanta-born singer. “You made it sexier, made it cooler.”
The former Beatle closed out the three-hour event with a historic nod to one of the most celebrated albums in rock history.
Lil Wayne ran through five cuts off his Tha Carter series of albums for his SNL50: The Anniversary Special appearance.
The four-season Saturday Night Live castmember paid tribute to his late castmates Chris Farley, Phil Hartman & more.
O'Connor famously tore up a photo of then-Pope John Paul II to end her 1992 Saturday Night Live performance.