BT Šab 8b(24) :אגב דמיטנפי מיקרי נחית
: since he gets dirty, he might go down [to wash]
See the entire entry for ˁal gabbē, ˁal gaḇ/geḇ prep. upon
BT Šab 8b(24) :דאגב דמיטנפי מיקרי נחית
: because (people) become filthy (from traveling), (a person) will sometimes go down (into the pool)
See the entire entry for qry#2 vb. to meet