UFC heavyweight Derrick Lewis has agreed to take on Gabriel Gonzaga on April 10 as Ruslan Magomedov is out with a knee injury.