You can do a search on this topic. I think there are some previous posts regarding this.
In short, you can adjust the valve on the outgoing pipe to your sump and flood the overflow till the water surface is above the top of the overflow. Then let the fish swim out by itself or lure them out by dropping some baits outside the overflow area. In my opinon, this is the safest way to get them out..