The key factor is to rely on God. The Bible says: “Trust in Jehovah with all your heart and do not lean upon your own understanding.
أَقُولُ لِيَهْوَهَ :‏ ‹ أَنْتَ مَلْجَإِي وَمَعْقِلِي ،‏ إِلٰهِي ٱلَّذِي أَتَّكِلُ عَلَيْهِ › .‏