If you're made redundant during your lease agreement, the first thing you should do is contact your leasing provider at the earliest opportunity and notify them of your situation. They will be able to talk you through what happens next - this will vary depending on the finance provider and is dealt with on a case-by-case basis, but you may need to pay an early termination fee.
The key thing to remember is not to panic. Most leasing providers are understanding and have experience of dealing with unexpected job losses, so they'll work with you in order to come to a mutually beneficial solution.
However, if you want to find out more about getting out of a car lease deal, you can read our handy guide to doing this here.