שלא לשמה Shelo lishmah (not for its own sake)

Doing a mitzvah for an ulterior motive, from which one comes to lishmah; each learns by his level, but it is no excuse for laxity.

Also written: shelo lishmah

Well illustrated in

Shiurim