Abu Sirmah narrated from Abu Ayyub, that: when death reached him, he said: "I have concealed something I heard from the Messenger of Allah ﷺ from you. I heard the Messenger of Allah ﷺ saying: 'If you did not sin, Allah would create a creation that would sin, so He will forgive them.’"
Additionally, this hadith also serves as a reminder that we should not judge others for their mistakes or sins because only Allah knows what is truly in their hearts and why they have done something wrong. We should instead focus on ourselves and strive to become better people by seeking His guidance and mercy at all times.