Mishkat al-Masabih
The Offices of Commander and Qadi — Hadith #3611
وَعَن جابرِ بن عبدِ الله: أَنَّ رَجُلَيْنِ تَدَاعَيَا دَابَّةً فَأَقَامَ كُلُّ وَاحِدٍ مِنْهُمَا الْبَيِّنَةَ أَنَّهَا دَابَّتُهُ نَتَجَهَا فَقَضَى بِهَا رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ لِلَّذِي فِي يدِهِ. رَوَاهُ فِي «شرح السّنة»
Jabir b. ‘Abdallah told that two men claimed an animal and both of them brought proof that it was his animal, the offspring of one of his beasts. God’s Messenger then gave his decision that it should go to the one who had it in his possession.
It is transmitted in Sharh as-sunna.