There is nothing as sweet as the presence of the Lord when you are being rejected. He knows exactly how you feel (1 Peter 2:4). He is gracious to the wounded spirit and heals the broken hearted (Isaiah 61:1; Psalm 34:18).
Draw near to God and he will draw near to you (Psalm 73:28; James 4:8).