Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:2:153

O you who have believed, seek help through patience and prayer. Indeed, Allah is with the patient.  

O you who believe, seek help, regarding the Hereafter, through patience, in obedience and afflictions, and prayer (He singles it out for mention on account of its frequency and its greatness); surely God is with the patient, helping them.
القرآن:٢:١٥٣

يَا أَيُّهَا الَّذِينَ آمَنُوا اسْتَعِينُوا بِالصَّبْرِ وَالصَّلَاةِ ۚ إِنَّ اللَّهَ مَعَ الصَّابِرِينَ  

{يا أيها الذين آمنوا استعينوا} على الآخرة {بالصبر} على الطاعة والبلاء {والصلاة} خصها بالذكر لتكررها وعظمها {إن الله مع الصابرين} بالعون.