All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah and that Muhammad,
, is His slave and Messenger.
The questioner did not mention if any damage was caused to the rented room as a result of what the friend, leaving the keys inside the room. Since this is the case, there is no ground for asking the friend to pay a portion of the imposed fine. Hence, this friend is not obliged to contribute in paying the fine imposed by the landlord on the tenant. However, if it happened that leaving the keys inside the room caused some kind of damage, then the friend's liability to pay a portion of the imposed fine is determined according to the extent of his negligence. If leaving the keys inside the room is considered negligence on his part according to customs, then he is liable for a portion of the imposed fine; otherwise, he is not liable for anything.
The Kuwaiti Encyclopedia of Fiqh reads:
"Negligence entails liability in transactions that normally do not entail liability such as deposits, delegation, mortgage, sharecropping, mudharabah (profit sharing), and Ijarah (lease) because the negligent party causes damages by falling short in fulfilling the obligation of preserving the subject matter. This is according to the scholarly consensus in this regard. The negligence that entails liability is that which people consider to be negligence in preserving this kind of trust according to customs..." [End of quote]
Allaah knows best.