Salim bin Abdullah bin Umar narrates from his father (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) was asked about a mouse that fell into ghee, and he said: "Throw away the ghee around the mouse and eat the rest." It was said: O Prophet of Allah! What if the ghee is not solid? He said: "Benefit from it, but do not use it for eating."
Abd al-Jabbar bin Umar is not relied upon as evidence. It has also been narrated in this way from Ibn Jurayj, from Ibn Shihab, but the chain to him is not strong.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الضحايا / 19625
Sayyiduna Abdullah bin Umar (may Allah be pleased with them both) says that the Prophet (peace and blessings be upon him) was asked about a mouse falling into ghee or fat, and he said: "If the ghee is solid, throw away what is around it." They asked: What if it is not solid? He said: "Benefit from it, but do not use it for eating."
What is correct from Ibn Umar is that this is his own statement, mawquf (stopping at him), not marfu' (attributed to the Prophet).
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الضحايا / 19626
Nafi' narrates from Sayyiduna Abdullah bin Umar (may Allah be pleased with them both) concerning a mouse that falls into oil: Use that oil to light lamps, and use it to oil your waterskins.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الضحايا / 19627
Sayyiduna Abu Sa'id (may Allah be pleased with him) says that the Prophet (peace and blessings be upon him) was asked about a mouse falling into ghee or oil, and he said: "Use it to light lamps, but do not use it for eating."
Ali (al-Daraqutni) said: Al-Thawri narrated it from Abu Harun as mawquf, (a statement) of Abu Sa'id.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الضحايا / 19628
Sayyiduna Abu Sa'id (may Allah be pleased with him) says: "When a mouse falls into ghee or oil, you may benefit from it, but do not eat it."
This mawquf version is the preserved one (mahfuz).
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الضحايا / 19629