Mishkat al-Masabih 2133
Ibn Mas'ūd’s tradition, “When God’s messenger was taken up to heaven ...” will be mentioned in the chapter on the Mi'rāj, if God most high will. 
Mi'rāj, Book 25, ch. 23, second last tradition in I.
‘Abd ar-Rahmān b. ‘Auf reported the Prophet as saying, “Three things will be under the Throne on the day of resurrection:
the Qur’ān which will contend with men, having an exoteric and an esoteric mean­ing; the trust;* and ties of relationship which will say, ‘God join those who joined me and sever those who severed me’!” 
*Cf. Qur’ān, 33:72

It is transmitted in Sharh as-sunna
عَنْ عَبْدِ الرَّحْمَنِ بْنِ عَوْفٍ عَنِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ: 
" ثَلَاثَةٌ تَحْتَ الْعَرْشِ يَوْمَ الْقِيَامَةِ الْقُرْآنُ يُحَاجُّ الْعِبَادَ لَهُ ظَهْرٌ وَبَطْنٌ وَالْأَمَانَةُ وَالرَّحِمُ تُنَادِي: أَلَا مَنْ وَصَلَنِي وَصَلَهُ اللَّهُ وَمَنْ قَطَعَنِي قَطَعَهُ اللَّهُ ". رَوَاهُ فِي شرح السّنة