If it’s meant to be, it’ll be since God is Sovereign and withholds nothing which is “good” from His upright servants:
“For the LORD God is a sun and shield; The LORD gives grace and glory; No good thing does He withhold from those who walk uprightly.” (Psalm 84:11)
Thus, if something does not work out (with everything done rightly), most likely it’s not God’s Will for you then.
*Note: The definition of what is “good” is from God’s perspective and not the world’s; for example, ‘martyrdom’ is “very painful” but it is a ‘good’ thing in God’s sight whereas ‘fornication’ is “very pleasurable” but it is “not” good in God’s sight.
A Deep truth.