Narrative:

On the departure from ZZZ to gdl ATC advised us to correct course immediately to avoid terrain; at this point we were well clear of all terrain in sight though admittedly south mountain did look a bit closer than usual but I chalked that up to our heavy takeoff weight which was within limits but just. ATC then gave us a few more vectors and eventually direct zzzzz way point. ATC then issued us instructions to call tower for possible pilot deviation. As we checked over the FMS we realized that we had neglected to select the departure runway xxl for the departure which put us on the wrong course. This is not an unfamiliar airport for us and we did run all checklists which means we both missed it three times.this may be a case of seeing what we want to see. I looked and saw the departure was in the box just like it was supposed to be; and only after being advised of impending doom did we really look. Fortunately; we were not unsafely close to terrain or traffic this time; but the potential it could have been is real.

Google
 

Original NASA ASRS Text

Title: Flight Crew flying CRJ-900 aircraft flew wrong departure procedure.

Narrative: On the departure from ZZZ to GDL ATC advised us to correct course immediately to avoid terrain; at this point we were well clear of all terrain in sight though admittedly South Mountain did look a bit closer than usual but I chalked that up to our heavy takeoff weight which was within limits but just. ATC then gave us a few more vectors and eventually direct ZZZZZ way point. ATC then issued us instructions to call tower for possible pilot deviation. As we checked over the FMS we realized that we had neglected to select the departure Runway XXL for the departure which put us on the wrong course. This is not an unfamiliar airport for us and we did run all checklists which means we both missed it three times.This may be a case of seeing what we want to see. I looked and saw the departure was in the box just like it was supposed to be; and only after being advised of impending doom did we really look. Fortunately; we were not unsafely close to terrain or traffic this time; but the potential it could have been is real.

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.