Narrative:

Takeoff into wake of preceding aircraft with flaps 5. With 'positive rate; gear up' first officer (first officer) raised flaps [instead of] gear. We had rotated late and flat in anticipation of wake. Carried extra airspeed into air; never had a settle; speed low warning; or entrance to barber pole area of tape. Noticed configuration deviation when I looked for flap retract bug to go from flaps 5 to 1; but only had clean min/man bug. Also noise from nose gear gave it away and was able to reconstruct what happened. Distraction and complacency due to takeoff into prior jet's wake. Mistake plain and simple. Had flown with first officer a few dozen times; no concerns. Just flat out grabbed the wrong handle.

Google
 

Original NASA ASRS Text

Title: B737-800 flight crew reported the pilot monitoring inadvertently retracted the flaps instead of the landing gear after takeoff at ORD; with wake from a preceding Airbus A320 cited as contributing.

Narrative: Takeoff into wake of preceding aircraft with flaps 5. With 'positive rate; gear up' FO (First Officer) raised flaps [instead of] gear. We had rotated late and flat in anticipation of wake. Carried extra airspeed into air; never had a settle; speed low warning; or entrance to barber pole area of tape. Noticed configuration deviation when I looked for flap retract bug to go from flaps 5 to 1; but only had clean min/man bug. Also noise from nose gear gave it away and was able to reconstruct what happened. Distraction and complacency due to takeoff into prior jet's wake. Mistake plain and simple. Had flown with FO a few dozen times; no concerns. Just flat out grabbed the wrong handle.

Data retrieved from NASA's ASRS site 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.