Positive principle · What to uphold
The Principle of Recognizing necessity and emergency
In specified cases of necessity, the Quran permits relief from a prohibition within the bounds of that necessity.
إِنَّما حَرَّمَ عَلَيكُمُ المَيتَةَ وَالدَّمَ وَلَحمَ الخِنزيرِ وَما أُهِلَّ بِهِ لِغَيرِ اللَّهِ ۖ فَمَنِ اضطُرَّ غَيرَ باغٍ وَلا عادٍ فَلا إِثمَ عَلَيهِ ۚ إِنَّ اللَّهَ غَفورٌ رَحيمٌ
He has forbidden you only carrion, blood, the flesh of swine, and that over which a cry has been raised for someone other than The God; but whoever is compelled by necessity, without seeking it out of defiance or exceeding the limit, incurs no sin. Indeed, The God is forgiving and merciful.
Al-Baqarah 2:173