All you need to know it this!
Allah (SWT) listens to all our prayers. There is never a No. Allah has his own Timing and His timing is the Best!
When you are faced with a different, remember that it is a way of expiating your sins and Allāh making you stronger and awaits for you a greater reward, if ye then show patience and perseverance unto Him.
In the hardest times of your life, it is but the most needed time that you cling harder on Allāh, for Only Him can help you, only Him.
So, hold strong on the rope of Allāh. Be motivated by it as it has been mentioned in various ahadtihs;
Abu Hurayra reported that the Messenger of Allah may Allah bless him and grant him peace, said, “When Allah desires good for someone, He afflicts him.”
Anas said, “I heard the Messenger of Allah, may Allah bless him and grant him peace, say, ‘Allah the Mighty and Exalted says, ‘When I test My slave regarding the two things he loves and he shows fortitude, I repay him for them with the Garden.’”.