Will Smith has opened up about the advice he received from Jay-Z and Kendrick Lamar before working on his new album, Based on a True Story.