Reference for Yevamot 218:7
ואיבעית אימא תוקע עצמו לדבר הלכה בדיינא דאתי דינא לקמיה וגמר הלכה ומדמי מילתא למילתא ואית ליה רבה ולא אזיל משאיל
'Who rivets himself to the word of the halachah', [brings evil upon himself], for it was taught: R. Jose said, 'Whosoever says that he has no [desire to study the] Torah, has no [reward for the study of the] Torah'. Is not this obvious? — But [this must be the meaning]: 'Whosoever says that he has only [an interest in the study of the] Torah<span class="x" onmousemove="('comment',' Not in its observance. ');"><sup>18</sup></span> has only [reward for the study of the] Torah'. This, however, is also obvious! — But [the meaning really is] that he has no [reward] even [for the study of the] Torah. What is the reason? — R. Papa replied: Scripture said, That ye may learn them and observe to do them,<span class="x" onmousemove="('comment',' Deut. V, 1. ');"><sup>19</sup></span> whosoever is [engaged] in observance<span class="x" onmousemove="('comment',' Of the laws of the Torah. ');"><sup>20</sup></span>