Narrative:

There was a plane on final approach behind me after I landed. I was trying to exit the runway as quickly as possible so they could land. I reached down to FLIP the switch on my flaps to make my brakes more effective and my landing gear came up. I felt rushed to get off the runway and didn't check what switch I flipped.

Google
 

Original NASA ASRS Text

Title: PLT OF BEA36 RETRACTS GEAR INSTEAD OF FLAPS ON LNDG ROLLOUT, HURRYING TO MAKE BRAKING MORE EFFECTIVE DUE TO ACFT FOLLOWING ON APCH.

Narrative: THERE WAS A PLANE ON FINAL APCH BEHIND ME AFTER I LANDED. I WAS TRYING TO EXIT THE RWY AS QUICKLY AS POSSIBLE SO THEY COULD LAND. I REACHED DOWN TO FLIP THE SWITCH ON MY FLAPS TO MAKE MY BRAKES MORE EFFECTIVE AND MY LNDG GEAR CAME UP. I FELT RUSHED TO GET OFF THE RWY AND DIDN'T CHK WHAT SWITCH I FLIPPED.

Data retrieved from NASA's ASRS site as of July 2007 and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.