I don’t think he wrote it. If y’all don’t know how this industry work by now you either stupid or in denial. I think it’s more like Drake and his situation. You have dudes that submit songs or write lyrics their talented but lack star power. Clearly Will Smith a household name so he don’t need help in that area dude was a star then. Between filming tv shows, movies, and his personal life dude ain’t got time to write no rhymes. That’s why he mentioned Snoop Doggestyle album it’s well known DOC helped with that shyt. So no I don’t think Will wrote that but only Will could make that song as classic as it is. Will probably tweaked some bars here and there that’s why he got a co writer credit