The Prime Minister's Resignation Honours in the United Kingdom are honours granted at the behest of an outgoing prime minister following their resignation. In such a list, a prime minister may ask the monarch to bestow peerages, or lesser honours, on any number of people of their choosing. In 1997, an additional 47 working peers were created at the behest of the three main parties.
I had to google it: Prime Minister's Resignation Honours