Valmiki Ramayana Ayodhya Kanda Sarga 110 Shloka 23
Original Shlokaसपत्न्या तु गरस्तस्यै दत्तो गर्भजिघांसया। गरेण सह तेनैव जात स्स सगरोऽभवत्।।2.110.23।।
1 source checked for this shloka
सपत्नया by her cowife, गर्भजिघांसया with a motive to destroy the embryo, तस्यै to her, गरः poison, दत्तः given, तेन for that reason, गरेण सहैव with poison, जातः born, सः he, सगरः Sagara, अभवत् became.
With a motive to destroy the embryo her cowife had poisoned her. That child was born with gara or poison for which he was called Sagara.