Where does “مَجْرًى” come from?

Words derived from “مَجْرًى