I saw this Corollary on page 21 of this book "Introduction to commutative algebra" by Atiyah and Macdonald.
Corollary 2.5. Let $M$ be a finitely generated $A$-module and let $a$ be an ideal of $A$ such that $aM=M$. Then there exists $x \equiv 1 \pmod {a}$ such that $xM=0$
However, I think this acts like a stepping stone from the generalized version of the Cayley-Hamilton theorem to the Nakayama lemma. But I'm curious how this Corollary came about. Did this corollary appear in a historical development process, or is it a corollary that was put in to make it easier to understand from a modern perspective?
Jacobson's 1945 paper, "The Radical and Semi-Simplicity for Arbitrary Rings", has
Azumaya's 1951 "On Maximally Central Algebras" goes
and Nakayama's 1951 "A Remark on Finitely Generated Modules" follows
then, Jacobson's "Lectures in abstract algebra" have no reference for either 'Krull' (besides the Krull-Schmidt theorem), 'Azumaya', or 'Nakayama', and only treat Cayley-Hamilton for matrices; no 'Nakayama' in Zariski-Samuel too
the form you quote appears in Bourbaki's "Commutative algebra", as 'Corollary 3.' in II.2.2; they use
from their "Algebra", VIII.9.3 as the last step in the proof; the generalized Cayley-Hamilton is "Proposition 20" also on "Algebra", III.8.11, relatively isolated; fact, they appear to occur isolated from one another generally
the same form you quote also appears on Matsumura's 1986 "Commutative Ring Theory" as 'Theorem 2.2', this time after the generalized Cayley-Hamilton;
the main point, I believe, linking this form to the earlier ones involving radicals is precisely the lemma Bourbaki uses to prove 'Corollary 3':