"And the city shall be devoted" (Joshua 6:17). Rabbi Shimon ben Lakish said: Just as it enters into the two hundred forty-eight limbs, so it departs from the two hundred forty-eight limbs. Just as it enters, as it is written "devoted" (cherem), which in gematria equals two hundred forty-eight, so it departs, as it is written "in wrath remember mercy" (rachem) (Habakkuk 3:2), which in gematria comes to the same number.
The Devoted City and the Number of Its Two Hundred Forty-Eight Limbs
Yalkut Shimoni on Nach 15:19
והיתה העיר חרם (יהושע ו, יז). אמר רבי שמעון בן לקיש כשם שהיא נכנסת לרמ"ח אברים כך היא יוצאה מרמ"ח אברים, כשם שהיא נכנסת דכתיב חרם בגימטריא רמ"ח כך היא יוצאה דכתיב ברוגז רחם תזכור בגימטריא הכי הוי: