It depends.
If you intend to reimburse the security deposit to your tenant at the end of the lease, then you do not include the security deposit as income.
If the security is meant to pay for the last month's rent of the lease, then you have to include as rental income in the year it was received.
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"