Doing God's Commandments or Doing God's Will

Avot 3:5

According to the Seforno, there is a difference between one who says "I need to earn money and Torah will be the means through which I earn money because I like learning" and one who says "I want to dedicate my life to learning Torah but I can't survive unless I accept money"

What is the halacha: do we hold like Rebbi Shimon bar Yochai or Rebbi Yishmael?

Delivered at the OU Israel Center, December 24th, 2018, 16 Tevet 5779