When the following noun is stated, قَبْلَ and بَعْدَ are mudaf and the following noun is mudaf ilayh.
قَبْلَ الْفَجْرِ — before dawn
بَعْدَ الْفَجْرِ — after dawn
They may also follow مِنْ:
مِنْ قَبْلِ الْفَجْرِ — before dawn (with مِنْ)
مِنْ بَعْدِ الْفَجْرِ — after dawn (with مِنْ)
In this comparison, adding مِنْ does not change the basic before-or-after relation. It does make قَبْلِ or بَعْدِ majrur.