One way to prevent egg muffins from sticking to the muffin tin is to spray the tin with cooking spray before adding the batter.  You can also use silicone muffin cups to help them come out quickly. Another way to prevent sticking is to ensure that the muffins are fully cooled before removing them from the tin.  If they are still warm, they will be more likely to stick.