Abu Nadra reported,

One of the companions of the Prophet ﷺ, known as Abu Abdullah, was visited by his companions while he was ill, and they found him weeping.They asked him, "What makes you weep? Did the Messenger of Allah ﷺ not say to you, 'Trim your mustache, then keep up this practice until you meet me'?"He replied, "Yes, but I heard the Messenger of Allah ﷺ say, 'Allah took a handful with His right hand and another handful with the other hand, then said, "This one is for this, and this one is for this, and I do not care."' So I do not know which of the two handfuls I am in."

Azami 1040

Sahih

عن أبي نضرة

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

الأعظمي 1040صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Faith
Chapter
Belief in the divine decree and predestination
Section
Hadiths of the two handfuls
Numbering
Jami al-Kamil 1040 (2nd edition)
Azami 1040