In The Name of Allaah, The Most Merciful, The Bestower of Mercy.
Allaah [The Most High] said:
Imaam Ibnul Qayyim [rahimahullaah] said:
A man asked Imaam Ash-Shaafi’ee [rahimahullaah] and said, “What would be better – that one is granted strength and the authority to establish the path of Allaah and His Messengers without any hindrance from those who belie or oppose Allaah and His Messengers, or face trials [at first]?’’ So, Ash- Shaafi’ee said to him, “One will not be given strength and the authority to follow the path of Allaah without any hindrance from those who belie or oppose Allaah and His Messengers until after facing trials; for indeed Allaah tried Nooh, Ibraaheem, Moosaa, Eesaa and Muhammad; so, after they exercised patience, they were granted authority and strength to establish the path of Allaah without hindrance’’. Therefore, one should never think that he will escape pain. [Ref 1]
This is a great principle; therefore, it is obligated on a sane person to be acquainted with it. Everyone will face afflictions, for indeed a person is a social being who must live with [other] people; the people have wants [or desires, wishes etc] and perceptions, and will seek to make him agree with them. If he disagrees with them, they harm and punish him; but if he agrees with them, sometimes they harm him and at other times he is harmed by others.
Whoever examines his circumstances and that of the people will find that this does occur a lot. Take for example the case of a people who desire lewd conduct and wrong doing -who make false statements related to religion or utter shirk – and commit sins similar to that which Allaah stated in Surah Al- A’raaf Aayah 33 [Ref 2], whilst they are in a place- such as a campus, a convoy, a large block of public buildings with stores, workshops, or a roofed market place, bazaar, a school, a hospice, a town, a narrow mountain pass or a city- with other people and are not able to commit [the evil] they desire, unless others either agree with them or refrain from rebuking them; therefore, they either seek the approval of others or ask them to keep quiet; if they [i.e. those asked to agree with evil] agree or refrain from rebuking the [perpetrators], they are saved from their evil in the beginning; but then they are the ones responsible for giving the upper hand to the perpetrators, who will humiliate and punish them in a manner that is more severe than what they feared at first, such as asking them for a false testimony or to utter false statements about the religion or to aid them commit lewd conduct and oppression. If they reject the request [of the perpetrators], they are harmed and shown enmity; but if they agree, they are responsible for subduing themselves and thus are humiliated more than what they feared at first or they are punished by others. Therefore, that which is obligated is what Aa’isha [radiyallaahu-anhaa] said to Mu’aawiyah [radiyallaahu-anhumaa]: “Indeed, whoever seeks the pleasure of the people at the expense of Allaah’s Pleasure will (earn) Allaah’s displeasure and Allah will cause the people to be displeased with him. And the praise of the people will become blame against him. And whoever seeks Allaah’s Pleasure at the expense of people’s pleasure, will (earn) Allaah’s Pleasure and Allah will cause the people to be pleased with him”.
This [i.e. seeking after the pleasure of the people at the expense of Allaah’s Pleasure] is perpetrated by those who aid the kings and leaders in their corrupt goals [Ref 3], as well as the people who aid those people of Bidah -who attribute themselves to knowledge and adherence to the religion- to commit their Bidah. As for the one whom Allaah guides and enables to follow guidance in affairs of the religion, he is prevented from committing haraam and exercises patience when harmed and shown enmity. And thereafter, he will receive a praiseworthy outcome in this worldly life and the Aakhirah, similar to what happened to the Messengers and their followers, such as the Muhaajiroon in this Ummah, the [upright] scholars, worshippers, merchants and leaders when they faced those who harmed them and showed them enmity.
Allaah [The Most High] stated in several Aayaat of the Qur’aan that the people will be put to trial through prosperity and adversity; therefore, a person is in need of exercising patience [i.e. in times of adversity] and being thankful to Allaah [i.e. in times of prosperity]. Allaah [The Most High] said: [إِنَّا جَعَلۡنَا مَا عَلَى ٱلۡأَرۡضِ زِينَةً۬ لَّهَا لِنَبۡلُوَهُمۡ أَيُّہُمۡ أَحۡسَنُ عَمَلاً۬ – Verily! We have made that which is on earth as an adornment for it, in order that We may test them (mankind) as to which of them are best in deeds. [i.e. those who do good deeds in the most perfect manner, that means to do them (deeds) totally for Allah’s sake and in accordance to the legal ways of the Prophet] [Surah Al-Kahf’ Aayah 7] [Ref 4]
Allaah [The Most High] said: [ أَمۡ حَسِبۡتُمۡ أَن تَدۡخُلُواْ ٱلۡجَنَّةَ وَلَمَّا يَعۡلَمِ ٱللَّهُ ٱلَّذِينَ جَـٰهَدُواْ مِنكُمۡ وَيَعۡلَمَ ٱلصَّـٰبِرِينَ – Do you think that you will enter Paradise before Allah tests those of you who fought (in His Cause) and (also) tests those who are As-Sabirin (the patient ones, etc.)? [Surah Aal Imraan’ Aayah 142]
And in Surah Al-Baqarah Allaah [The Most High] said:
أَمۡ حَسِبۡتُمۡ أَن تَدۡخُلُواْ ٱلۡجَنَّةَ وَلَمَّا يَأۡتِكُم مَّثَلُ ٱلَّذِينَ خَلَوۡاْ مِن قَبۡلِكُمۖ مَّسَّتۡہُمُ ٱلۡبَأۡسَآءُ وَٱلضَّرَّآءُ وَزُلۡزِلُواْ حَتَّىٰ يَقُولَ ٱلرَّسُولُ وَٱلَّذِينَ ءَامَنُواْ مَعَهُ ۥ مَتَىٰ نَصۡرُ ٱللَّهِۗ أَلَآ إِنَّ نَصۡرَ ٱللَّهِ قَرِيبٌ۬
Or think you that you will enter Paradise without such (trials) as came to those who passed away before you? They were afflicted with severe poverty and ailments and were so shaken that even the Messenger and those who believed along with him said, “When (will come) the Help of Allah?” Yes! Certainly, the Help of Allah is near! [Surah Al-Baqarah’ Aayah 214]
This is because the soul will not be purified and upright until it is put to test through afflictions, just as gold cannot acquire its pristine state until it is refined to separate it from other less precious metals. Allaah [The Most High] said: [فَٱصۡبِرۡ إِنَّ وَعۡدَ ٱللَّهِ حَقٌّ۬ۖ وَلَا يَسۡتَخِفَّنَّكَ ٱلَّذِينَ لَا يُوقِنُونَ – So be patience. Verily the promise of Allaah is true, and let not those who have no certainty of faith, discourage you from conveying Allah’s Message (which you are obliged to convey)]. [Surah Rum’ Aayah 60]
Unlike the person upon certainty, the person who has no certainty in faith [or lacks certainty] does not remain firm, rather he acts carelessly, whereas certainty is that firm Eemaan in the heart based on [sound] knowledge and action. And it maybe that a person has sound knowledge but does not exercise patience during calamities; rather he is swayed by emotion. Al-Hasan Al-Basri [rahimahullaah] said: If you wish to see someone with insight but has no patience, you will see him; and if you wish to see someone who has patience but not insight, you will see him; but if you see a person who had insight as well as patience, then he is the one mentioned by Allaah in the Aayah:
[وَجَعَلۡنَا مِنۡہُمۡ أَٮِٕمَّةً۬ يَہۡدُونَ بِأَمۡرِنَا لَمَّا صَبَرُواْۖ وَڪَانُواْ بِـَٔايَـٰتِنَا يُوقِنُونَ – And We made from among them (Children of Israel), leaders, giving guidance under Our Command, when they were patient and used to believe with certainty in Our Ayat (proofs, evidences, verses, lessons, signs, revelations, etc.)]. [Surah As-Sajdah’ Aayah 24] 
Imaam As-Sadi [rahimahullaah] said:
[فَٱصۡبِرۡ إِنَّ وَعۡدَ ٱللَّهِ حَقٌّ۬ۖ وَلَا يَسۡتَخِفَّنَّكَ ٱلَّذِينَ لَا يُوقِنُونَ – So be patient. Indeed, the promise of Allaah is true. And let not those who have no certainty of faith, discourage you from conveying Allah’s Message (which you are obliged to convey)]. [Surah Rum’ Aayah 60]
[فَٱصۡبِرۡ – So be patient]- Meaning, upon that which you have been commanded and in calling them to the [path of] Allaah; even if you see them turning away that should not turn you away from the call. [إِنَّ وَعۡدَ ٱللَّهِ حَقٌّ۬ۖ – Indeed, the promise of Allaah is true]- Meaning, there is no doubt about that. And this is from that which aids a person to exercise patience, because when a servant know that his deeds will not be in vain and will find a full reward for it [in the afterlife], then what he faces of hardship will become minor, and it will become much easy for him to bear every difficulty.
[وَلَا يَسۡتَخِفَّنَّكَ ٱلَّذِينَ لَا يُوقِنُونَ – And let not those who have no certainty of faith, discourage you]- Meaning, their Imaan is weak and their certainty is little, so their forbearance becomes lacking as result of that and their patience is little. So, beware out of fear of being discouraged by these people, because unless you are not careful about their affair, they will discourage you and lead you to not being firm in holding fast to the commands and prohibitions, and the soul may assist them in this affair and seek to be similar and to be in agreement with them. 
Some Excellent Efforts Fulfilled In The Baab of Fardu Kifaayah
[Ref 1: https://salaficentre.com/2017/09/reflection-conditional-promise-return-strength-authority/
Ref 2:قُلۡ إِنَّمَا حَرَّمَ رَبِّىَ ٱلۡفَوَٲحِشَ مَا ظَهَرَ مِنۡہَا وَمَا بَطَنَ وَٱلۡإِثۡمَ وَٱلۡبَغۡىَ بِغَيۡرِ ٱلۡحَقِّ وَأَن تُشۡرِكُواْ بِٱللَّهِ مَا لَمۡ يُنَزِّلۡ بِهِۦ سُلۡطَـٰنً۬ا وَأَن تَقُولُواْ عَلَى ٱللَّهِ مَا لَا تَعۡلَمُونَ – say (O Muhammad): “(But) the things that my Lord has indeed forbidden are Al-Fawahish (great evil sins, every kind of unlawful sexual intercourse, etc.) whether committed openly or secretly, sins (of all kinds), unrighteous oppression, joining partners (in worship) with Allah for which He has given no authority, and saying things about Allah of which you have no knowledge.” [Surah Al-A’raaf’ Aayah 33]
[Ref 5: Source: An Excerpt from ‘Al-Fawaa’id’ pages 293-300. slightly paraphrased]
[Ref 6: An Excerpt from Tafseer as-Sadi. Slightly paraphrased]