When God sees that we are heading into a wrong direction or we would end up getting hurt; then He would protect us from it. So, next time rejection knocks at your door instead of frowning, rejoice, and be grateful to God even if it feels hard at the beginning. Though, it may not be clear right now what God's reasons are for that rejection. He will reveal it in time as you go through your journey with Him.