Rectal swabs of 104 patients who underwent abdominal surgery were screened for ESBL producers. Sequence types (STs) and resistance genes were identified by whole-genome sequencing of 46 isolates from 17 patients. All but seven isolates were assigned to recognized STs. While 18 ESBL-producing E. coli (EPEC) strains were of unique STs, ESBL-producing K. pneumoniae (EPKP) strains were mainly ST14 or ST15. Eight patients harboured strains of the same ST before and after abdominal surgery. The most prevalent resistant genes in E. coli were blaEC (69.57%), blaCTX-M (65.22%), and blaTEM (36.95%), while blaSHV was present in only K. pneumoniae (41.30%). Overall, genes encoding β-lactamases of classes A (blaCTX-M, blaTEM, blaZ), C (blaSHV, blaMIR, and blaDHA), and D (blaOXA) were identified, the most prevalent variants being blaCTX-M-15, blaTEM-1B, blaSHV-28, and blaOXA-1. Interestingly, blaCMY-2, the most common pAmpC β-lactamase genes reported worldwide, and mobile colistin resistance genes, mcr-10-1, were also identified. The presence of blaCMY-2 and mcr-10-1 is concerning as they may constitute a potentially high risk of pan-resistant post-surgical infections. It is imperative that healthcare professionals monitor intra-abdominal surgical site infections rigorously to prevent transmission of faecal ESBL carriage in high-risk patients.