Ecclesiastes 6:5
Moreover he hath not seen the sun, nor known any thing: this hath more rest than the other.
Cross-reference
Job 3:10–13
Parallel
Job 3:10-13 wishes for death at birth and rest, directly paralleling the stillborn's rest described here.
Psalm 58:8
Allusion
Psalm 58:8 uses the identical phrase 'untimely birth... that they may not see the sun', reinforcing the stillborn's fate.