There are four categories of good names:
The first (best) category is the names ‘Abd-Allaah and ‘Abd al-Rahmaan. It was reported that the Prophet (peace and blessings of Allaah be upon him) said: “The most beloved of names to Allaah are ‘Abd-Allaah and ‘Abd al-Rahmaan.” (Narrated by Muslim in his Saheeh, 1398).
The second category is all the names which express enslavement to and worship of Allaah, such as ‘Abd al-Azeez, ‘Abd al-Raheem, ‘Abd al-Malik, ‘Abd al-Ilaah, ‘Abd al-Salaam, etc.
The third category is the names of Prophets and Messengers – may the peace and blessings of Allaah be upon them. Undoubtedly the best and greatest of them is our Prophet Muhammad (peace and blessings of Allaah be upon him); the name Ahmad is also one of his names. Next come the names of the “Messengers of strong will” [cf. Al-Ahqaaf 46:35], namely Ibraaheem, Moosa, ‘Eesa and Nooh (may the peace and blessings of Allaah be upon them), then the rest of the Prophets - may the peace and blessings of Allaah be upon them.
The fourth category is the names of righteous slaves of Allaah, above all the companions of our noble Prophet. It is mustahabb to use their names, following their example and hoping to reach a higher status.
The fifth category is any other good name which has a proper and pleasant meaning.