“I’m very aware that today is today and very soon will be my yesterday, so thank you very much for the opportunity and having me be a part of your morning wake-up,” Barnett told listeners.

“I did also want to use my last moments hosting here on the Today programme to pay tribute to decent journalism and journalists, in this instance those behind two of the biggest UK stories in the last week,” she said, naming four female reporters from national newspapers.

She went on: “I wanted to say, in these final moments I have this particular microphone, all power to the storytellers, those who hold the powerful to account, and those behind the scenes who help us all do that work. We could not do it without you.

“But the biggest thanks I reserve to those who trust us with some of the hardest but most important stories to tell. I do not doubt for a minute how hard it must be to find people to tell things that you haven’t even told your nearest and dearest.”

Barnett then thanked her husband and children for putting up with her antisocial working hours.

She is moving on to host a “bold” new show of her own.