Ubada bin Samit reported that the Messenger of Allah ﷺ said, "Whoever loves to meet Allah, Allah loves to meet him, and whoever hates to meet Allah, Allah hates to meet him."
أخبرنا أبو الأشعث قال حدثنا المعتمر قال سمعت أبي يحدث عن قتادة
عن عبادة بن الصامت قال قال رسول الله ﷺ من أحب لقاء الله أحب الله لقاءه ومن كره لقاء الله كره الله لقاءه
See the previous hadith. It is also in Kubra, no. 1963. Tirmidhi also narrated it in the Book of Funerals, chapter, "What Has Been Said About Whoever Loves to Meet Allah, Allah Loves to Meet Him," no. 1066, from Abu Ashath (Ahmad bin Miqdam Ajli), with the same wording.