This is from Triṣaṣṭisāraprabandha, written by the preceptor of Bajrasena.
Gallica Portal, Bibliothèque nationale de France. Département des Manuscrits. Sanscrit 1677