مِّن كُلِّ أَمْرٍ

مِّن كُلِّ أَمْرٍ is a phrase (شِبْهُ الجُمْلَةِ) consisting of a particle and a nominal compound

PhraseParticle / Noun / NounNounNounParticle
 شِبْهُ الجُمْلَةِجَارٌ وَمَجْرُوْرٌ وَهُوَ مُضَافٌ وَ مُضَافٌ إِلَيْهِمُضَافٌ إِلَيْهِاسْمٌ مَجْرُوْرٌ وَهُوَ مَضَافٌحَرْفُ جَرٍّ
PhraseCompoundpossessive nounGenitive noun + Noun possessedParticle of pulling down
  
for every affairمِّن كُلِّ أَمْرٍ=أَمْرٍ+كُلِّ+مِّن
 for every matter/commandmatter/affair/commandeveryfor
Surah/Below is the only verse in the holy Quran containing the compoundمِّن كُلِّ أَمْرٍ
Verse
97-4The Angels and Jibreel (AS) descend therein by the permission of their Lord from every commandتَنَزَّلُ المَلَآئِكَةُ وَالرُّوْحُ فِيْهَا بِإِذْنِ رَبِّهِمْ مِنْ كُلِّ أَمْرٍ