The Messenger of Allah ﷺ said, and he mentioned something similar to the hadith of Dawud, with additions and omissions. Among what he added was, "Indeed, Allah does not look at your bodies or your forms, but He looks at your hearts," and he pointed with his fingers to his chest.
حدثني أبو الطاهر أحمد بن عمرو بن سرح حدثنا ابن وهب عن أسامة وهو ابن زيد أنه سمع أبا سعيد مولى عبد الله بن عامر بن كريز يقول سمعت
ا قال رسول الله ﷺ فذكر نحو حديث داود وزاد ونقص ومما زاد فيه إن الله لا ينظر إلى أجسادكم ولا إلى صوركم ولكن ينظر إلى قلوبكم وأشار بأصابعه إلى صدره