Ata bin Abu Rabah reported,

I saw Jabir bin Abdullah and Jabir bin Umayr, both from the Ansar, practicing archery. One of them sat down, so his companion said to him, "Have you grown lazy?"He replied, "Yes."Then one of them said to the other, "Did you not hear the Messenger of Allah ﷺ say, 'Everything that does not involve the remembrance of Allah is idle distraction, heedlessness, and play, except for four things, a man walking between the two targets in archery, training his horse, playing with his wife, and learning to swim.'"

Azami 7982

Sahih

عن عطاء بن أبي رباح قال

رأيت جابر بن عبد الله وجابر بن عمير الأنصاريين يرميان قال: فأما أحدهما فجلس، فقال له صاحبه: أكسلت؟ قال: نعم، فقال أحدهما للآخر: أما سمعت رسول الله ﷺ يقول: كل شيء ليس من ذكر الله، فهو لغو وسهو ولعب إلا أربعة خصال: مشي الرجل بين الغرضين، وتأديبه فرسه، وملاعبته أهله، وتعلم السباحة.

الأعظمي 7982صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Jihad
Chapter
Horses, archery, and racing
Section
Excellence of archery and encouragement to learn it
Numbering
Jami al-Kamil 7982 (2nd edition)
Azami 7982