Surah Maryam, ayah 23

19:23

فَأَجَآءَهَا ٱلۡمَخَاضُ إِلَىٰ جِذۡعِ ٱلنَّخۡلَةِ قَالَتۡ يَٰلَيۡتَنِي مِتُّ قَبۡلَ هَٰذَا وَكُنتُ نَسۡيٗا مَّنسِيّٗا ٢٣

Fa ajā'ahal-makhādu ilā jidh'in-nakhlati qālat yālaytanī mittu qabla hādhā wakuntu nasyam mansiyyā

And the pains of childbirth drove her to the trunk of a palm tree. She said, "Oh, I wish I had died before this and was in oblivion, forgotten."