Arahants and suicide
There might be something along those lines in SN 4.23 Godhika Sutta.

Page 85 of The Patimokkha Rules
Translated &amp; Explained says,


  Case (b) is apparently derived from SN 4.23, where Ven.
  Godhika takes his life and gains arahantship just moments before death