If you've learned, either from a conversation with a supervisor or loose talk around the office, that one of your coworkers may be terminated, you may want to let them know while there's still a chance for them to save their job. Your goal should be to encourage them to make a candid self‐assessment and once they have hit on areas management finds problematic, to suggest simple, effective changes to their work habits. Depending on your relationship, and how bad things are, you might also encourage them to start looking for another job. Remember, while some people have a sixth sense for when their tenure at a company is shaky, others don't. If they aren't getting the hint, or simply doesn't want your advice, you're better off leaving them be. Avoid being too explicit, or naming your source, so as not to endanger your own job.
This script can be modified to: