The source – youtube.com
John Mueller confirmed that Google most likely will not impose sanctions if affiliate links on the site have nofollow or rel="sponsored" attribute.
At the same time, the expert added that affiliate links fall into the category of commercial, so it is better to use the markup. But this is only a recommendation, not an obligation. If you do not get money for posting such links, Google will not penalize the site manually.