Ibn Mas'ud (May Allah be pleased with him) said: One night I joined the Prophet ﷺ in his (optional) Salat. He prolonged the standing so much that I thought of doing something evil. He was asked: "What did you intend to do?" He replied: "To sit down and leave him". Al-Bukhari and Muslim.
The Prophet ﷺ taught us through this hadith that even when things get difficult or challenging, we must remain obedient and faithful to Allah SWT by continuing with our prayers and other religious obligations. We must never give up on them no matter what happens because they are essential for a successful life here on earth and hereafter in Jannah.