ʿImrān and saʿdān both end with alif and nūn, but the ruling differs.
ʿImrān: has proper-name status, so it is a diptote.
Saʿdān: in the book’s usage, has no proper-name status, so it is fully declinable.
Establish the word’s meaning and use before deciding its case endings.