Jeremiah 31:15–17 sets up one of Scripture's most unusual sequences. Rachel is depicted weeping for her children — inconsolably, refusing comfort — and God does not correct her. He acknowledges the grief, honors it, and then speaks into it: "Refrain thy voice from weeping, and thine eyes from tears: for thy work shall be rewarded... and there is hope in thine end." The hope is announced after the grief, not instead of it. God names the grief before he names the future.
Matthew 19:14 is Jesus' rebuke of his disciples who were turning children away from him: "Suffer little children, and forbid them not, to come unto me: for of such is the kingdom of heaven." He received children specifically, physically. The God who said this and demonstrated this does not turn children away in death. The child you have lost was received by the one who opened his arms to every child brought to him.
Commentary is from a charismatic Protestant perspective, drawing on KJV text and public-domain sources including Spurgeon, Andrew Murray, and Matthew Henry.